mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-04-08 17:37:56 -04:00
Don't regenerate barcode if value is empty
This commit is contained in:
@@ -1652,7 +1652,7 @@ public class LoyaltyCardEditActivity extends CatimaAppCompatActivity implements
|
||||
String cardIdString = tempLoyaltyCard.barcodeId != null ? tempLoyaltyCard.barcodeId : tempLoyaltyCard.cardId;
|
||||
CatimaBarcode barcodeFormat = tempLoyaltyCard.barcodeType;
|
||||
|
||||
if (cardIdString == null || barcodeFormat == null) {
|
||||
if (cardIdString == null || cardIdString.isEmpty() || barcodeFormat == null) {
|
||||
barcodeImageLayout.setVisibility(View.GONE);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user