1
0
Fork 0

Issue #2458: Use correct Socorro product name.

master
Sebastian Kaspari 2019-05-15 10:27:18 -04:00 committed by Emily Kager
parent 334868c283
commit f84b7f10dd
1 changed files with 6 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class Analytics(
private val context: Context
) {
val crashReporter: CrashReporter by lazy {
var services = listOf<CrashReporterService>()
val services = mutableListOf<CrashReporterService>()
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