Implementati ean13 in vendita.
Fix su checkDigitEan13.
This commit is contained in:
@@ -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);
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user