From d69fe299236b4dcdefeaed0ebb8c264e823940ed Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 15 May 2019 17:51:55 -0400 Subject: [PATCH] [fenix] 1551700: Enable custom pings from debug dashboard (https://github.com/mozilla-mobile/fenix/pull/2516) Fix re-enabling of telemetry --- .../java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt index bd0625cf48b4..eb679506ccbc 100644 --- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt +++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt @@ -14,6 +14,7 @@ import org.mozilla.fenix.GleanMetrics.CustomTab import org.mozilla.fenix.GleanMetrics.Events import org.mozilla.fenix.GleanMetrics.FindInPage import org.mozilla.fenix.GleanMetrics.Metrics +import org.mozilla.fenix.GleanMetrics.Pings import org.mozilla.fenix.GleanMetrics.QuickActionSheet import org.mozilla.fenix.GleanMetrics.SearchDefaultEngine import org.mozilla.fenix.ext.components @@ -174,12 +175,13 @@ class GleanMetricsService(private val context: Context) : MetricsService { private val activationPing = ActivationPing(context) override fun start() { + Glean.setUploadEnabled(true) if (initialized) return initialized = true starter = CoroutineScope(Dispatchers.Default).launch { - Glean.setUploadEnabled(true) + Glean.registerPings(Pings) Glean.initialize(context) Metrics.apply { -- 2.11.4.GIT