summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2013-04-15 11:35:52 -0700
committerMichael Kolb <kolby@google.com>2013-04-15 13:30:30 -0700
commitd1e0a6e78d686cdc259a2978e988cdd734ca6a2f (patch)
treee5c27d5b672f9c44079786f69d2285ee75bbb678 /gallerycommon/src/com/android/gallery3d/common
parent6734a36f96dd5b4fd158321a4b59de3b2a79554b (diff)
downloadandroid_packages_apps_Snap-d1e0a6e78d686cdc259a2978e988cdd734ca6a2f.tar.gz
android_packages_apps_Snap-d1e0a6e78d686cdc259a2978e988cdd734ca6a2f.tar.bz2
android_packages_apps_Snap-d1e0a6e78d686cdc259a2978e988cdd734ca6a2f.zip
Lock camera orientation using FW API
Bug: 8617536 Change-Id: Id3a5ae777f6f87d24984cbca48202470651cd71c
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
index 864e1305f..f6439f1ad 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -186,6 +186,9 @@ public class ApiHelper {
public static final boolean HAS_ROTATION_ANIMATION =
hasField(WindowManager.LayoutParams.class, "rotationAnimation");
+ public static final boolean HAS_ORIENTATION_LOCK =
+ Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2;
+
public static final boolean HAS_CANCELLATION_SIGNAL =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;