mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-10-25 07:18:42 -04:00
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.
This commit is contained in:
1 parent
c0e8a33605
commit
96c665a539
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user