mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-09-15 15:58:50 -04:00
Fix shortcut returning to previous card after rotation
This commit is contained in:
1 parent
9121df192d
commit
3e9549088a
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user