[fenix] Issue https://github.com/mozilla-mobile/fenix/issues/19846: Make sure default browser notification only happens once

pull/600/head
Roger Yang 3 years ago committed by mergify[bot]
parent 814f0ef0c9
commit e671e5314e

@ -24,7 +24,6 @@ class DefaultBrowserIntentProcessor(
override fun process(intent: Intent, navController: NavController, out: Intent): Boolean {
return if (isDefaultBrowserNotificationIntent(intent)) {
activity.openSetDefaultBrowserOption()
activity.settings().defaultBrowserNotificationDisplayed = true
true
} else {

@ -35,6 +35,10 @@ class DefaultBrowserNotificationWorker(
ensureChannelExists()
NotificationManagerCompat.from(applicationContext)
.notify(NOTIFICATION_TAG, NOTIFICATION_ID, buildNotification())
// default browser notification should only happen once
applicationContext.settings().defaultBrowserNotificationDisplayed = true
return Result.success()
}

Loading…
Cancel
Save