-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1910449 - Add explicit call to cancel for MPS (java.util.Timer) i…
…n Glean Android bindings This adds an explicit call to `Timer.cancel()` for the Metrics Ping Scheduler's timer when the application enters the background (`handleClientInactive`) in order to prevent the Timer thread from blocking the application from termination (see `java.util.Timer` docs here: https://developer.android.com/reference/java/util/Timer) This also adds a check to ensure the application is running and in the foreground when the `Timer` fires before rescheduling the next metrics ping `Timer`
- Loading branch information
Showing
3 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters