Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Issue #19846: Make sure default browser notification only happens once (backport #20373) #20383

Merged
merged 1 commit into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down