From f84b7f10dd46a3c8e2f47f87e5bf1db5687277b7 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 15 May 2019 10:27:18 -0400 Subject: [PATCH] Issue #2458: Use correct Socorro product name. --- .../java/org/mozilla/fenix/components/Analytics.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/Analytics.kt b/app/src/main/java/org/mozilla/fenix/components/Analytics.kt index 29b29d60a..eddc5aea0 100644 --- a/app/src/main/java/org/mozilla/fenix/components/Analytics.kt +++ b/app/src/main/java/org/mozilla/fenix/components/Analytics.kt @@ -32,7 +32,7 @@ class Analytics( private val context: Context ) { val crashReporter: CrashReporter by lazy { - var services = listOf() + val services = mutableListOf() if (!BuildConfig.SENTRY_TOKEN.isNullOrEmpty()) { val sentryService = SentryService( @@ -42,11 +42,13 @@ class Analytics( sendEventForNativeCrashes = true ) - services += sentryService + services.add(sentryService) } - val socorroService = MozillaSocorroService(context, context.getString(R.string.app_name)) - services += socorroService + // The name "Fenix" here matches the product name on Socorro and is unrelated to the actual app name: + // https://bugzilla.mozilla.org/show_bug.cgi?id=1523284 + val socorroService = MozillaSocorroService(context, appName = "Fenix") + services.add(socorroService) val intent = Intent(context, HomeActivity::class.java).apply { flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP