Closed Bug 2065565 Opened 3 months ago Closed 2 months ago

Move notification title and text determination out of the notification helper buildPrivacyReportNotification

Categories

(Firefox for Android :: Experimentation and Telemetry, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: towhite, Assigned: corentin)

References

Details

(Whiteboard: [android-activation-trust] [fxdroid])

Attachments

(1 external file)

Comment for context.

Assignee: nobody → cbect
Status: NEW → ASSIGNED

buildPrivacyReportNotification used to have two responsibilities: determining the notification content to display and building the notification.

This patch introduces PrivacyReportNotificationContent, a data holder for the resolved notification's title and text, with a factory method for each variant. PrivacyReportNotificationWorker, which owns the blocked tracker logic, now builds the notification content based on the blocked tracker count, and then hands it to showPrivacyReportNotification, which just posts the notification.

Attachment #9635265 - Attachment description: WIP: Bug 2065565 - Determine the privacy report notification's content outside the notification helper → Bug 2065565 - Determine the privacy report notification's content outside the notification helper
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5ec3111910c4 https://hg.mozilla.org/mozilla-central/rev/7fc7a42bc352 Determine the privacy report notification's content outside the notification helper r=android-reviewers,twhite
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: