From 4711606eb045b08201f69bf76c49379ff1c49915 Mon Sep 17 00:00:00 2001 From: Colin Lee Date: Tue, 18 Jun 2019 16:38:29 -0700 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/3508: "Send crash report" checkbox is ignored (https://github.com/mozilla-mobile/fenix/pull/3512) --- .../java/org/mozilla/fenix/crashes/CrashReporterFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/crashes/CrashReporterFragment.kt b/app/src/main/java/org/mozilla/fenix/crashes/CrashReporterFragment.kt index b906e852b6..bb14c53ff6 100644 --- a/app/src/main/java/org/mozilla/fenix/crashes/CrashReporterFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/crashes/CrashReporterFragment.kt @@ -68,7 +68,7 @@ class CrashReporterFragment : Fragment() { private fun submitReportIfNecessary(crash: Crash) { var didSubmitCrashReport = false - if (Settings.getInstance(context!!).isCrashReportingEnabled) { + if (Settings.getInstance(context!!).isCrashReportingEnabled && send_crash_checkbox.isChecked) { requireComponents.analytics.crashReporter.submitReport(crash) didSubmitCrashReport = true }