Skip to content

Commit

Permalink
fix(android): barcode option passing to mlkit for Android (react-nati…
Browse files Browse the repository at this point in the history
…ve-camera#2614)

* pass barcode options to mlkit

* rm doubled FORMAT_ALL_FORMATS
  • Loading branch information
kyle-johnson authored and sibelius committed Dec 1, 2019
1 parent c728529 commit 32355f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class BarcodeFormatUtils {
map.put(FirebaseVisionBarcode.FORMAT_AZTEC, "AZTEC");
map.put(FirebaseVisionBarcode.FORMAT_ALL_FORMATS, "ALL");
map.put(FirebaseVisionBarcode.FORMAT_UPC_A, "UPC_A");
map.put(FirebaseVisionBarcode.FORMAT_ALL_FORMATS, "ALL");
map.put(-1, "None");
FORMATS = map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void release() {
private void createBarcodeDetector() {
FirebaseVisionBarcodeDetectorOptions options = mBuilder.build();
mBarcodeDetector = FirebaseVision.getInstance()
.getVisionBarcodeDetector();
.getVisionBarcodeDetector(options);

}
}

0 comments on commit 32355f4

Please sign in to comment.