mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Indentation wtf
This commit is contained in:
parent
5c840a5001
commit
67217d4337
|
@ -34,19 +34,19 @@ public final class OpenCameraInterface {
|
||||||
* @return handle to {@link Camera} that was opened
|
* @return handle to {@link Camera} that was opened
|
||||||
*/
|
*/
|
||||||
public static Camera open(int cameraId) {
|
public static Camera open(int cameraId) {
|
||||||
if (cameraId < 0) {
|
if (cameraId < 0) {
|
||||||
Log.w(TAG, "Requested invalid camera ID: " + cameraId);
|
Log.w(TAG, "Requested invalid camera ID: " + cameraId);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
int numCameras = Camera.getNumberOfCameras();
|
int numCameras = Camera.getNumberOfCameras();
|
||||||
|
|
||||||
if (numCameras == 0) {
|
if (numCameras == 0) {
|
||||||
Log.w(TAG, "No cameras!");
|
Log.w(TAG, "No cameras!");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Camera camera;
|
Camera camera;
|
||||||
if (cameraId < numCameras) {
|
if (cameraId < numCameras) {
|
||||||
Log.i(TAG, "Opening camera #" + cameraId);
|
Log.i(TAG, "Opening camera #" + cameraId);
|
||||||
camera = Camera.open(cameraId);
|
camera = Camera.open(cameraId);
|
||||||
|
@ -54,7 +54,7 @@ public final class OpenCameraInterface {
|
||||||
Log.w(TAG, "Requested camera does not exist: " + cameraId);
|
Log.w(TAG, "Requested camera does not exist: " + cameraId);
|
||||||
camera = null;
|
camera = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return camera;
|
return camera;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue