From 52d6cf8fa058a9ddd93e54fb64c999512a5810f7 Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Tue, 11 Jun 2019 14:33:38 -0700 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/3131 - Add new task and clear task flags when opening intent (https://github.com/mozilla-mobile/fenix/pull/3363) --- app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt b/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt index 4fcdf524d4..3ded81c61f 100644 --- a/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt +++ b/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt @@ -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 -> {