summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2018-03-12 17:03:06 +0100
committercodeworkx <daniel.hillenbrand@codeworkx.de>2018-03-12 17:03:06 +0100
commite4a946e204cd8f6a1bcdb5fb067918e8677e97f0 (patch)
tree4b620665873195a8e099bf814814d3a8f4c8ca66
parentd600a3b51b1f2e74b30a286f90bbbf16da69262e (diff)
downloadandroid_packages_apps_Snap-e4a946e204cd8f6a1bcdb5fb067918e8677e97f0.zip
android_packages_apps_Snap-e4a946e204cd8f6a1bcdb5fb067918e8677e97f0.tar.gz
android_packages_apps_Snap-e4a946e204cd8f6a1bcdb5fb067918e8677e97f0.tar.bz2
Snap: fix copy and paste fail
https://github.com/LineageOS/android_packages_apps_Snap/commit/70dbc05d00a5e6011f532d029c50bfb4a17a2e57 Change-Id: I9bee85c9a454dad074fec688974cc84b629cd62d
-rw-r--r--src/com/android/camera/util/CameraUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/util/CameraUtil.java b/src/com/android/camera/util/CameraUtil.java
index 2f7e6cb..8c7e885 100644
--- a/src/com/android/camera/util/CameraUtil.java
+++ b/src/com/android/camera/util/CameraUtil.java
@@ -413,7 +413,7 @@ public class CameraUtil {
String[] cameraIds = manager.getCameraIdList();
if (cameraIds != null && cameraIds.length > 0) {
- CameraCharacteristics characteristics = manager.getCameraCharacteristics(manager.getCameraIdList()[0]);
+ CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraIds[0]);
int deviceLevel = characteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);
switch (deviceLevel) {