Merge pull request #3039 from CatimaLoyalty/fix/3038

Fix shortcut returning to previous card after rotation
This commit is contained in:
Sylvia van Os
2026-02-28 13:55:51 +01:00
committed by GitHub

View File

@@ -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);