Implementati ean13 in vendita.

Fix su checkDigitEan13.
This commit is contained in:
2018-11-30 17:10:47 +01:00
parent 3c5907a184
commit 61287648e5
7 changed files with 60 additions and 35 deletions

View File

@@ -74,9 +74,11 @@ public class PointMobileBarcodeReader implements BarcodeReaderInterface {
if (mOnScanSuccessfull != null) {
try {
//try {
if(mDecodeResult.symName.equalsIgnoreCase("READ_FAIL")){
throw new Exception("Barcode non riconosciuto");
//throw new Exception("Barcode non riconosciuto");
if(mOnScanFailed != null) mOnScanFailed.run(new Exception("Barcode non riconosciuto"));
return;
}
BarcodeScanDTO barcodeScanDTO = new BarcodeScanDTO()
@@ -88,11 +90,11 @@ public class PointMobileBarcodeReader implements BarcodeReaderInterface {
mOnScanSuccessfull.run(barcodeScanDTO);
} catch (Exception ex) {
Log.e(TAG, ex.getMessage());
//} catch (Exception ex) {
// Log.e(TAG, ex.getMessage());
if(mOnScanFailed != null) mOnScanFailed.run(ex);
}
// if(mOnScanFailed != null) mOnScanFailed.run(ex);
//}
}
}
}