mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-10-22 14:04:54 -04:00
Reset state on paused to prevent layout glitches
This commit is contained in:
1 parent
2c12c312e3
commit
4a7e8b6eba
2 files changed
+21
No files matched your search
@@ -145,6 +145,12 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
|
||||
|
||||
Log.i(TAG, "To view card: " + loyaltyCardId);
|
||||
|
||||
if(barcodeIsFullscreen)
|
||||
{
|
||||
// Properly reset state to prevent any issues
|
||||
recreate();
|
||||
}
|
||||
|
||||
// The brightness value is on a scale from [0, ..., 1], where
|
||||
// '1' is the brightest. We attempt to maximize the brightness
|
||||
// to help barcode readers scan the barcode.
|
||||
|
||||
Reference in new issue
Block a user