Closed
Bug 2065541
Opened 3 months ago
Closed 2 months ago
[refactor] Move the `updatePrivacyReportNotificationWorker` logic into a dedicated `PrivacyWorkerScheduler` class
Categories
(Firefox for Android :: Experimentation and Telemetry, enhancement)
Tracking
()
RESOLVED
FIXED
157 Branch
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: towhite, Assigned: rebecatudor273)
References
Details
(Whiteboard: [fxdroid] [android-activation-trust])
Attachments
(1 external file)
Move the updatePrivacyReportNotificationWorker logic into a dedicated PrivacyWorkerScheduler class that also implements DefaultLifecycleObserver. This would allow us to register the scheduler directly with HomeActivity's lifecycle and keep the worker scheduling logic separate from the activity itself. See TopSitesRefresher for reference of an existing example.
Original comment for context.
Updated•3 months ago
|
Summary: Move the `updatePrivacyReportNotificationWorker` logic into a dedicated `PrivacyWorkerScheduler` class → [refactor] Move the `updatePrivacyReportNotificationWorker` logic into a dedicated `PrivacyWorkerScheduler` class
| Assignee | ||
Updated•3 months ago
|
Assignee: nobody → rebecatudor273
| Assignee | ||
Comment 1•3 months ago
|
||
Move privacy report notification worker scheduling out of HomeActivity
into a dedicated lifecycle-aware scheduler.
Register PrivacyReportNotificationScheduler as a HomeActivity lifecycle
observer and move its scheduling tests out of HomeActivityTest.
Pushed by rtudor@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/14d7c99f9f7c
https://hg.mozilla.org/integration/autoland/rev/4260648bee56
Extract privacy report worker scheduling. r=android-reviewers,gmalekpour
Comment 3•2 months ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 months ago
status-firefox157:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•