From 4de952ba2d7b81613c8423f471634fe2054cac86 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Sat, 6 Oct 2018 14:24:50 -0700 Subject: [PATCH] Set rotation state in onCreate() The menu creation need not change this state --- .../main/java/protect/card_locker/LoyaltyCardViewActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java index 677abd902..e7847a78c 100644 --- a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java +++ b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java @@ -76,6 +76,8 @@ public class LoyaltyCardViewActivity extends AppCompatActivity storeName = findViewById(R.id.storeName); barcodeImage = findViewById(R.id.barcode); collapsingToolbarLayout = findViewById(R.id.collapsingToolbarLayout); + + rotationEnabled = true; } @Override @@ -198,7 +200,6 @@ public class LoyaltyCardViewActivity extends AppCompatActivity { getMenuInflater().inflate(R.menu.card_view_menu, menu); - rotationEnabled = true; return super.onCreateOptionsMenu(menu); }