Merge "Stop camera enumeration after finding first camera"

This commit is contained in:
Kevin Chyn
2018-08-14 02:57:56 +00:00
committed by Android (Google) Code Review

View File

@@ -236,6 +236,7 @@ public class FaceEnrollPreviewFragment extends InstrumentedPreferenceFragment {
CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
mPreviewSize = chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class),
width, height, MAX_PREVIEW_WIDTH, MAX_PREVIEW_HEIGHT);
break;
}
} catch (CameraAccessException e) {
Log.e(TAG, "Unable to access camera", e);