mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] Keep CLEAR_TASK
This commit is contained in:
parent
511b912a79
commit
dddc36e8ca
@ -134,6 +134,11 @@ open class HomeActivity : AppCompatActivity(), ShareFragment.TabsSharedCallback
|
|||||||
override fun onNewIntent(intent: Intent?) {
|
override fun onNewIntent(intent: Intent?) {
|
||||||
super.onNewIntent(intent)
|
super.onNewIntent(intent)
|
||||||
handleCrashIfNecessary(intent)
|
handleCrashIfNecessary(intent)
|
||||||
|
intent?.run {
|
||||||
|
if (this.flags and Intent.FLAG_ACTIVITY_CLEAR_TASK != 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
handleOpenedFromExternalSourceIfNecessary(intent)
|
handleOpenedFromExternalSourceIfNecessary(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class IntentReceiverActivity : Activity() {
|
|||||||
} else {
|
} else {
|
||||||
if (!intent.getBooleanExtra(NotificationManager.RECEIVE_TABS_TAG, false)) {
|
if (!intent.getBooleanExtra(NotificationManager.RECEIVE_TABS_TAG, false)) {
|
||||||
intent.flags =
|
intent.flags =
|
||||||
Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
|
Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user