For #25538 - Add "metrics" telemetry for if default wallpaper is shown

This commit is contained in:
Mugurell 2022-06-06 12:40:52 +03:00 committed by mergify[bot]
parent 8d9ccd76e9
commit c5f37f01eb
2 changed files with 19 additions and 0 deletions

View File

@ -1518,6 +1518,22 @@ metrics:
- android-probes@mozilla.com
expires: 111
unit: integer
default_wallpaper:
type: boolean
lifetime: application
description: |
Is the default wallpapper set to be shown?
send_in_pings:
- metrics
bugs:
- https://github.com/mozilla-mobile/fenix/issues/25538
data_reviews:
- ???????
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 114
customize_home:
most_visited_sites:

View File

@ -89,6 +89,7 @@ import org.mozilla.fenix.telemetry.TelemetryLifecycleObserver
import org.mozilla.fenix.utils.BrowsersCache
import org.mozilla.fenix.utils.Settings
import org.mozilla.fenix.utils.Settings.Companion.TOP_SITES_PROVIDER_MAX_THRESHOLD
import org.mozilla.fenix.wallpapers.WallpaperManager
import java.util.UUID
import java.util.concurrent.TimeUnit
@ -670,6 +671,8 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
packageManager.getInstallerPackageName(packageName)
}
installSource.set(installSourcePackage.orEmpty())
defaultWallpaper.set(WallpaperManager.isDefaultTheCurrentWallpaper(settings))
}
with(AndroidAutofill) {