Keep CLEAR_TASK
parent
c87468d031
commit
f952234c57
|
@ -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