summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util/PersistUtil.java
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2017-01-28 14:56:35 +0100
committerChippa-a <vusal1372@gmail.com>2019-10-25 15:55:25 +0300
commit5740fe5b116e7b36d8b67e90742d059fdd750cdf (patch)
tree24e30939f8fe0209d494044bfcd5f7021a96a425 /src/com/android/camera/util/PersistUtil.java
parentf578763ab20847d77587ae3d151a82876a47993e (diff)
downloadandroid_packages_apps_Snap-5740fe5b116e7b36d8b67e90742d059fdd750cdf.tar.gz
android_packages_apps_Snap-5740fe5b116e7b36d8b67e90742d059fdd750cdf.tar.bz2
android_packages_apps_Snap-5740fe5b116e7b36d8b67e90742d059fdd750cdf.zip
Snap: Detect and use Camera2 if available
Author: codeworkx <daniel.hillenbrand@codeworkx.de> Date: Sat Jan 28 14:56:35 2017 +0100 Snap: detect and use Camera2 if available Also add overlay option to enable support for Camera2 to retain current behaviour. Change-Id: I20939e33f4bb687e4abea11bbcdb9bf246b156e4 Author: codeworkx <daniel.hillenbrand@codeworkx.de> Date: Sun Aug 13 12:22:05 2017 +0200 Snap: Add missing null check on isCamera2Supported Change-Id: I61c04c7cb8d344573ab7fb11f7114f09aaf24fb7 Change-Id: I339ead08d10ddff5dad491987d94367354a4b3f3
Diffstat (limited to 'src/com/android/camera/util/PersistUtil.java')
-rwxr-xr-xsrc/com/android/camera/util/PersistUtil.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/camera/util/PersistUtil.java b/src/com/android/camera/util/PersistUtil.java
index 647082995..05a0e91cb 100755
--- a/src/com/android/camera/util/PersistUtil.java
+++ b/src/com/android/camera/util/PersistUtil.java
@@ -54,8 +54,6 @@ public class PersistUtil {
SystemProperties.get("persist.sys.camera.video.snapshotsize", "");
private static final String PERSIST_CAMERA_VIDEO_SIZE =
SystemProperties.get("persist.sys.camera.video.size", "");
- private static final boolean PERSIST_CAMERA_CAMERA2 =
- SystemProperties.getBoolean("persist.sys.camera.camera2", true);
private static final boolean PERSIST_CAMERA_ZSL =
SystemProperties.getBoolean("persist.sys.camera.zsl.disabled", false);
private static final int PERSIST_CAMERA_CANCEL_TOUCHFOCUS_DELAY =
@@ -173,10 +171,6 @@ public class PersistUtil {
return result;
}
- public static boolean getCamera2Mode() {
- return PERSIST_CAMERA_CAMERA2;
- }
-
public static boolean getCameraZSLDisabled() {
return PERSIST_CAMERA_ZSL;
}