diff --git a/app/src/main/java/protect/card_locker/ShortcutHelper.java b/app/src/main/java/protect/card_locker/ShortcutHelper.java index f82c1a797..0b1231235 100644 --- a/app/src/main/java/protect/card_locker/ShortcutHelper.java +++ b/app/src/main/java/protect/card_locker/ShortcutHelper.java @@ -90,7 +90,7 @@ class ShortcutHelper { intent.setAction(Intent.ACTION_MAIN); // Prevent instances of the view activity from piling up; if one exists let this // one replace it. - intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_SINGLE_TOP); + intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); final Bundle bundle = new Bundle(); bundle.putInt(LoyaltyCardViewActivity.BUNDLE_ID, loyaltyCard.id); intent.putExtras(bundle);