Keep CLEAR_TASK
parent
c87468d031
commit
f952234c57
|
@ -134,6 +134,11 @@ open class HomeActivity : AppCompatActivity(), ShareFragment.TabsSharedCallback
|
|||
override fun onNewIntent(intent: Intent?) {
|
||||
super.onNewIntent(intent)
|
||||
handleCrashIfNecessary(intent)
|
||||
intent?.run {
|
||||
if (this.flags and Intent.FLAG_ACTIVITY_CLEAR_TASK != 0) {
|
||||
return
|
||||
}
|
||||
}
|
||||
handleOpenedFromExternalSourceIfNecessary(intent)
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ class IntentReceiverActivity : Activity() {
|
|||
} else {
|
||||
if (!intent.getBooleanExtra(NotificationManager.RECEIVE_TABS_TAG, false)) {
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue