mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Remove exception on re-setting manual camera ID; this is fine and needed for an activity handling multiple Intents
This commit is contained in:
parent
281721f2d9
commit
58be32036a
|
@ -280,12 +280,8 @@ public final class CameraManager {
|
||||||
* @param cameraId camera ID of the camera to use. A negative value means "no preference".
|
* @param cameraId camera ID of the camera to use. A negative value means "no preference".
|
||||||
*/
|
*/
|
||||||
public synchronized void setManualCameraId(int cameraId) {
|
public synchronized void setManualCameraId(int cameraId) {
|
||||||
if (initialized) {
|
|
||||||
throw new IllegalStateException();
|
|
||||||
} else {
|
|
||||||
requestedCameraId = cameraId;
|
requestedCameraId = cameraId;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows third party apps to specify the scanning rectangle dimensions, rather than determine
|
* Allows third party apps to specify the scanning rectangle dimensions, rather than determine
|
||||||
|
|
Loading…
Reference in a new issue