1
0
Fork 0

For #3131 - Add new task and clear task flags when opening intent (#3363)

master
Emily Kager 2019-06-11 14:33:38 -07:00 committed by Colin Lee
parent f05eb032d4
commit de45dfd98a
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class IntentReceiverActivity : Activity() {
}
intent.action == Intent.ACTION_VIEW -> {
intent.setClassName(applicationContext, HomeActivity::class.java.name)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
true
}
else -> {