Possible fix from Acer for case where camera is not closed ?

git-svn-id: https://zxing.googlecode.com/svn/trunk@1733 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-04-03 18:46:27 +00:00
parent 3b65b7304d
commit 169a94c45b

View file

@ -126,8 +126,8 @@ public final class CameraManager {
if (camera == null) {
throw new IOException();
}
}
camera.setPreviewDisplay(holder);
if (!initialized) {
initialized = true;
configManager.initFromCameraParameters(camera);
@ -139,7 +139,6 @@ public final class CameraManager {
FlashlightManager.enableFlashlight();
}
}
}
/**
* Closes the camera driver if still in use.