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 29b29d60a0..eddc5aea07 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