diff --git a/android/src/com/google/zxing/client/android/camera/CameraManager.java b/android/src/com/google/zxing/client/android/camera/CameraManager.java index 7fc273116f..0ed181a707 100755 --- a/android/src/com/google/zxing/client/android/camera/CameraManager.java +++ b/android/src/com/google/zxing/client/android/camera/CameraManager.java @@ -77,13 +77,13 @@ public synchronized void openDriver(SurfaceHolder holder) throws IOException { Camera theCamera = camera; if (theCamera == null) { - if (requestedCameraId > -1) { + if (requestedCameraId > -1) { theCamera = OpenCameraInterface.open(requestedCameraId); - } else { - theCamera = OpenCameraInterface.open(); - } + } else { + theCamera = OpenCameraInterface.open(); + } - if (theCamera == null) { + if (theCamera == null) { throw new IOException(); } camera = theCamera;