Keep CLEAR_TASK

This commit is contained in:
Yeon Taek Jeong 2019-08-06 13:44:47 -07:00 committed by Emily Kager
parent c87468d031
commit f952234c57
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?) {
super.onNewIntent(intent)
handleCrashIfNecessary(intent)
intent?.run {
if (this.flags and Intent.FLAG_ACTIVITY_CLEAR_TASK != 0) {
return
}
}
handleOpenedFromExternalSourceIfNecessary(intent)
}

View File

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