From 5a0793c1c4120f2c01ebe0b3d2296e17f2bfa3c5 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Fri, 3 Jun 2016 13:47:02 -0300 Subject: [PATCH] Changing area and prompt --- .../com/google/zxing/client/android/camera/CameraManager.java | 2 +- src/browser/BarcodeScannerProxy.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/android/LibraryProject/src/com/google/zxing/client/android/camera/CameraManager.java b/src/android/LibraryProject/src/com/google/zxing/client/android/camera/CameraManager.java index 55dbdf863..c9371085d 100755 --- a/src/android/LibraryProject/src/com/google/zxing/client/android/camera/CameraManager.java +++ b/src/android/LibraryProject/src/com/google/zxing/client/android/camera/CameraManager.java @@ -43,7 +43,7 @@ public final class CameraManager { private static final int MIN_FRAME_WIDTH = 220; private static final int MIN_FRAME_HEIGHT = 220; - private static final int MAX_FRAME_WIDTH = 880; + private static final int MAX_FRAME_WIDTH = 680; private static final int MAX_FRAME_HEIGHT = 680; private final Context context; diff --git a/src/browser/BarcodeScannerProxy.js b/src/browser/BarcodeScannerProxy.js index 6670dc60d..d8b7db9c2 100644 --- a/src/browser/BarcodeScannerProxy.js +++ b/src/browser/BarcodeScannerProxy.js @@ -1,5 +1,5 @@ function scan(success, error) { - var code = window.prompt("Enter barcode value (empty value will fire the error handler):"); + var code = "Enter barcode value (empty value will fire the error handler):"; if(code) { var result = { text:code, @@ -21,4 +21,4 @@ module.exports = { encode: encode }; -require("cordova/exec/proxy").add("BarcodeScanner",module.exports); \ No newline at end of file +require("cordova/exec/proxy").add("BarcodeScanner",module.exports);