Commit 63e806e9 by Oscar Fuentes

Fix call device function

parent 692a778a
......@@ -46,7 +46,7 @@ public class PluginHelper {
String device = "";
try {
device = args.get(0).toString();
if (device.equalsIgnoreCase(Devices.getString(0))) {
if (device.equalsIgnoreCase(Devices.getString(1))) {
mInstance.setScanCallback(new Barcode2DWithSoft.ScanCallback() {
@Override
public void onScanComplete(int i, int length, byte[] data) {
......@@ -71,7 +71,7 @@ public class PluginHelper {
});
mInstance.scan();
} else if (device.equalsIgnoreCase(Devices.getString(1))) {
} else if (device.equalsIgnoreCase(Devices.getString(0))) {
BarcodeScanner barcodeScanner = new BarcodeScanner();
barcodeScanner.cordova = cordova;
barcodeScanner.webView = webView;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment