From 507444ffd06c927d0d786a3fbb8eaabddd99ee6f Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 13 Apr 2016 12:06:23 +1000 Subject: [PATCH] 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 {