Closed Bug 1805184 Opened 3 years ago Closed 3 years ago

Glean isn't disabled immediately when telemetry pref is toggled

Categories

(Focus :: General, defect)

All
Android
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: travis_, Assigned: mcarare)

References

Details

Attachments

(2 files)

Currently, only Legacy telemetry is disabled immediately when the "Send Usage Data" preference is toggled. Glean is only passed the value of the preference into its initialize function, but should also have its setUploadEnabled called when the preference is toggled:

https://github.com/mozilla-mobile/focus-android/blob/bfef7c20e0a902feeaeac33895c00ad5424eb8d7/app/src/main/java/org/mozilla/focus/widget/TelemetrySwitchPreference.kt#L29

Steps to reproduce

  1. Disable telemetry via the preference

Expected behavior

Glean upload is immediately disabled and a deletion-request ping submitted

Actual behavior

Glean isn't disabled until the next application launch, meaning we could collect telemetry and send it even after the preference is disabled (at least until the app is restarted).

Device information

  • Focus version: Current version
  • Android device model: N/A
  • Android OS version: N/A

Any additional information?

While we do perform the correct actions on the next application launch, this isn't quite fitting with Mozilla data policy and should be addressed.

Attached file GitHub Pull Request
See Also: → 1805266

This has been merged, closing as FIXED

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Assignee: nobody → jonalmeida942
Assignee: jonalmeida942 → mcarare
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: