diff options
author | Andrew Harp <andrewharp@users.noreply.github.com> | 2017-12-07 12:32:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 12:32:23 -0500 |
commit | 4bc510c17b23af1adac83b148c0c7dfd978a20be (patch) | |
tree | 9342f34e16f67cc22b4cb82726d12cc89719c089 /tensorflow/examples | |
parent | dac4cbd4602b742532102f8953641ff301363fbe (diff) |
add paren for clarity
Diffstat (limited to 'tensorflow/examples')
-rw-r--r-- | tensorflow/examples/android/src/org/tensorflow/demo/CameraActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/android/src/org/tensorflow/demo/CameraActivity.java b/tensorflow/examples/android/src/org/tensorflow/demo/CameraActivity.java index b4de279c00..8bd4abb154 100644 --- a/tensorflow/examples/android/src/org/tensorflow/demo/CameraActivity.java +++ b/tensorflow/examples/android/src/org/tensorflow/demo/CameraActivity.java @@ -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); |