Indentation wtf

This commit is contained in:
slepmog 2014-05-01 05:36:44 -07:00
parent 5c840a5001
commit 67217d4337

View file

@ -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;
} }