Commit 60e57475 by Oscar Fuentes

Minor fixes

parent 51fa4248
......@@ -26,7 +26,6 @@ public class PluginHelper {
public static void init(CordovaInterface cordova) {
Context context = cordova.getActivity();
try {
mInstance = Barcode2DWithSoft.getInstance();
if (mInstance != null) {
......@@ -52,8 +51,6 @@ public class PluginHelper {
String barCode = new String(data);
barCode = barCode.replaceAll("\u0000", "");
Log.i(TAG, barCode);
mInstance.stopScan();
mInstance.close();
callbackContext.sendPluginResult(new PluginResult(Status.OK, barCode));
}
......
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