mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-05-18 05:36:39 -04:00
Don't crash on unsupported barcode
This commit is contained in:
@@ -77,6 +77,12 @@ public class PkpassImporter {
|
||||
if (barcodeType.equals("QR")) {
|
||||
barcodeType = "QR_CODE";
|
||||
}
|
||||
|
||||
if(!BarcodeSelectorActivity.SUPPORTED_BARCODE_TYPES.contains(barcodeType))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return new LoyaltyCard(-1, store, note, cardId, barcodeType, null, null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user