From 507444ffd06c927d0d786a3fbb8eaabddd99ee6f Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 13 Apr 2016 12:06:23 +1000 Subject: [PATCH 1/2] Resolve alternating flash during autofocus --- android/ZBarScannerActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/ZBarScannerActivity.java b/android/ZBarScannerActivity.java index 1490aeb..06b3d86 100644 --- a/android/ZBarScannerActivity.java +++ b/android/ZBarScannerActivity.java @@ -179,7 +179,7 @@ implements SurfaceHolder.Callback { Camera.Parameters camParams = camera.getParameters(); if(flashMode.equals("on")) { - camParams.setFlashMode(Camera.Parameters.FLASH_MODE_ON); + camParams.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH); } else if(flashMode.equals("off")) { camParams.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); } else { From 6cad11b77de503bec7e7d1fcaf9eaa0eda302d7d Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 13 Apr 2016 12:19:16 +1000 Subject: [PATCH 2/2] README: remove quirk, now fixed --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 3ef5c28..5ca64f5 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,6 @@ Status: - Android: DONE - iOS: DONE -Quirks: - -- __Android__: On Android API Level < 14, flash "on" may cause the flash to - alternate between on and off at about a half second/one second interval, - instead of making it stay on... - ## Thanks