From 96c665a539b4308b828427f5662a407082a195bd Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Wed, 3 Feb 2016 15:09:22 -0500 Subject: [PATCH] Support scanning all types of 1D barcodes There are loyalty cards which are not product codes but are 1D barcodes. Enabling support for all types of 1D barcodes to enable more types of loyalty cards. --- .../main/java/protect/card_locker/LoyaltyCardViewActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java index c607c0dd6..18c1cc55f 100644 --- a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java +++ b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java @@ -170,7 +170,7 @@ public class LoyaltyCardViewActivity extends AppCompatActivity public void onClick(View v) { IntentIntegrator integrator = new IntentIntegrator(LoyaltyCardViewActivity.this); - integrator.setDesiredBarcodeFormats(IntentIntegrator.PRODUCT_CODE_TYPES); + integrator.setDesiredBarcodeFormats(IntentIntegrator.ONE_D_CODE_TYPES); String prompt = getResources().getString(R.string.scanCardBarcode); integrator.setPrompt(prompt);