mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-01-25 15:28:21 -05:00
Fixed pressing the save button multiple times creating multiple entries
Fixes #691
This commit is contained in:
@@ -1243,6 +1243,11 @@ public class LoyaltyCardEditActivity extends CatimaAppCompatActivity {
|
||||
}
|
||||
|
||||
private void doSave() {
|
||||
if (isFinishing()) {
|
||||
// If we are done saving, ignore any queued up save button presses
|
||||
return;
|
||||
}
|
||||
|
||||
if (tempStoredOldBarcodeValue != null) {
|
||||
askBarcodeChange(this::doSave);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user