Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: handle multiple redundant intents #541

Merged
merged 1 commit into from
Oct 10, 2024
Merged

android: handle multiple redundant intents #541

merged 1 commit into from
Oct 10, 2024

Conversation

kari-ts
Copy link
Collaborator

@kari-ts kari-ts commented Oct 10, 2024

Use FLAG_UPDATE_CURRENT for managing multiple calls to startForegroundService. This ensures only one instance of the intent is active and replaces any previously pending intents with the latest one.

Fixes tailscale/corp#23828

Use FLAG_UPDATE_CURRENT for managing multiple calls to startForegroundService. This ensures only one instance of the intent is active and replaces any previously pending intents with the latest one.

Fixes tailscale/corp#23828

Signed-off-by: kari-ts <kari@tailscale.com>
@kari-ts kari-ts requested review from agottardo and barnstar October 10, 2024 23:05
@kari-ts kari-ts merged commit 753b8d3 into main Oct 10, 2024
4 checks passed
@kari-ts kari-ts deleted the kari/foreground branch October 10, 2024 23:27
agottardo pushed a commit that referenced this pull request Oct 15, 2024
Use FLAG_UPDATE_CURRENT for managing multiple calls to startForegroundService. This ensures only one instance of the intent is active and replaces any previously pending intents with the latest one.

Fixes tailscale/corp#23828

Signed-off-by: kari-ts <kari@tailscale.com>
(cherry picked from commit 753b8d3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants