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)

All
Android
enhancement
Points:
3

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.

Depends on: 2060524
Whiteboard: [fxdroid] [android-activation-trust]
No longer blocks: 2058997
Summary: Move the `updatePrivacyReportNotificationWorker` logic into a dedicated `PrivacyWorkerScheduler` class → [refactor] Move the `updatePrivacyReportNotificationWorker` logic into a dedicated `PrivacyWorkerScheduler` class
Points: --- → 3
Assignee: nobody → rebecatudor273

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.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: