Issue #2458: Use correct Socorro product name.
parent
334868c283
commit
f84b7f10dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue