add paren for clarity

This commit is contained in:
Andrew Harp 2017-12-07 12:32:23 -05:00 committed by GitHub
parent dac4cbd460
commit 4bc510c17b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,7 @@ public abstract class CameraActivity extends Activity
// Fallback to camera1 API for internal cameras that don't have full support.
// This should help with legacy situations where using the camera2 API causes
// distorted or otherwise broken previews.
useCamera2API = facing == CameraCharacteristics.LENS_FACING_EXTERNAL
useCamera2API = (facing == CameraCharacteristics.LENS_FACING_EXTERNAL)
|| isHardwareLevelSupported(characteristics,
CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL);
LOGGER.i("Camera API lv2?: %s", useCamera2API);