mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
3b65b7304d
commit
169a94c45b
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue