Bug 1796348 - Add a notification delegate to CrashReporter.

The CrashReporter will now show notifications through the notification delegate.
fenix/113.0
mcarare 1 year ago committed by Ryan VanderMeulen
parent 31e661eb8b
commit 0e9c8897ad

@ -29,6 +29,7 @@ import org.mozilla.fenix.components.metrics.GleanMetricsService
import org.mozilla.fenix.components.metrics.MetricController
import org.mozilla.fenix.components.metrics.MetricsStorage
import org.mozilla.fenix.experiments.createNimbus
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.messaging.CustomAttributeProvider
import org.mozilla.fenix.perf.lazyMonitored
@ -114,6 +115,7 @@ class Analytics(
),
enabled = true,
nonFatalCrashIntent = pendingIntent,
notificationsDelegate = context.components.notificationsDelegate,
)
}

@ -57,6 +57,7 @@ class BreadcrumbRecorderTest {
context = mockk(),
services = listOf(service),
shouldPrompt = CrashReporter.Prompt.NEVER,
notificationsDelegate = mockk(),
),
)

Loading…
Cancel
Save