Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit bc27992

Browse files
Merge pull request #719 from Burgov/trigger_handler_with_no_results
trigger handler when there are no results
2 parents 0586f94 + b453966 commit bc27992

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/mlkit/barcodescanning/index.android.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export class MLKitBarcodeScanner extends MLKitBarcodeScannerBase {
2323
return new com.google.android.gms.tasks.OnSuccessListener({
2424
onSuccess: barcodes => {
2525

26-
if (barcodes.size() === 0) return;
27-
2826
// const imageSource = new ImageSource();
2927
// imageSource.setNativeSource(this.lastVisionImage.getBitmapForDebugging());
3028

src/mlkit/barcodescanning/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class MLKitBarcodeScanner extends MLKitBarcodeScannerBase {
2222
if (error !== null) {
2323
console.log(error.localizedDescription);
2424

25-
} else if (barcodes !== null && barcodes.count > 0) {
25+
} else if (barcodes !== null) {
2626
const result = <MLKitScanBarcodesOnDeviceResult>{
2727
barcodes: []
2828
};

0 commit comments

Comments
 (0)