diff --git a/android/ZBarScannerActivity.java b/android/ZBarScannerActivity.java index 0146510..f9302d7 100644 --- a/android/ZBarScannerActivity.java +++ b/android/ZBarScannerActivity.java @@ -314,7 +314,10 @@ implements SurfaceHolder.Callback { private Runnable doAutoFocus = new Runnable() { public void run() { - if(camera != null) camera.autoFocus(autoFocusCb); + if(camera != null){ + camera.cancelAutoFocus(); + camera.autoFocus(autoFocusCb); + } } };