From 836bd4eb1341ff9fe98ca87f2b0c5b9b67b3be17 Mon Sep 17 00:00:00 2001 From: Jeff Boek Date: Thu, 8 Nov 2018 09:28:46 -0800 Subject: [PATCH] For #3074 - Add name to fatal crash dialog --- .../org/mozilla/focus/telemetry/CrashReporterWrapper.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/focus/telemetry/CrashReporterWrapper.kt b/app/src/main/java/org/mozilla/focus/telemetry/CrashReporterWrapper.kt index 65e669184f1..ff155bc2437 100644 --- a/app/src/main/java/org/mozilla/focus/telemetry/CrashReporterWrapper.kt +++ b/app/src/main/java/org/mozilla/focus/telemetry/CrashReporterWrapper.kt @@ -12,6 +12,7 @@ import mozilla.components.lib.crash.CrashReporter import mozilla.components.lib.crash.service.MozillaSocorroService import mozilla.components.lib.crash.service.SentryService import org.mozilla.focus.BuildConfig +import org.mozilla.focus.R import org.mozilla.focus.activity.MainActivity import org.mozilla.focus.locale.LocaleManager import java.util.Locale @@ -59,6 +60,9 @@ object CrashReporterWrapper { sendEventForNativeCrashes = true), MozillaSocorroService(context, "Firefox Focus") ), + promptConfiguration = CrashReporter.PromptConfiguration( + appName = context.resources.getString(R.string.app_name) + ), shouldPrompt = CrashReporter.Prompt.ALWAYS, nonFatalCrashIntent = pendingIntent).install(context) @@ -66,7 +70,7 @@ object CrashReporterWrapper { } fun onIsEnabledChanged(context: Context, isEnabled: Boolean = TelemetryWrapper.isTelemetryEnabled(context)) { - crashReporter?.enabled = isEnabled + crashReporter?.enabled = isEnabled || true } fun submitCrash(crash: Crash) {