2
0
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:
Yeon Taek Jeong 2019-08-06 13:44:47 -07:00 committed by Emily Kager
parent 511b912a79
commit dddc36e8ca
2 changed files with 6 additions and 1 deletions

View File

@ -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)
} }

View File

@ -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
} }