mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-04-11 10:57:59 -04:00
Fixed pressing the save button multiple times creating multiple entries
Fixes #691
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased - 97
|
||||
|
||||
- Fixed pressing the save button multiple times creating multiple entries
|
||||
|
||||
## v2.12.0 - 96 (2021-12-23)
|
||||
|
||||
- Add CODE 93 support
|
||||
|
||||
@@ -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