summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-05-03 10:26:01 -0700
committerDoris Liu <tianliu@google.com>2013-05-03 10:35:22 -0700
commit5a6cbd17a335361ae9c71a1356ea8c956f1353fb (patch)
treed0ce1a77efde12bf4ef7345bdffca0eaec4f5c60 /gallerycommon/src
parent6d7a2d3e32a27de28336176f856a7439b36252bd (diff)
downloadandroid_packages_apps_Gallery2-5a6cbd17a335361ae9c71a1356ea8c956f1353fb.tar.gz
android_packages_apps_Gallery2-5a6cbd17a335361ae9c71a1356ea8c956f1353fb.tar.bz2
android_packages_apps_Gallery2-5a6cbd17a335361ae9c71a1356ea8c956f1353fb.zip
Anchor camera controls when flipping device
Also adjusted margins for camera root view to avoid covering undo bar Bug: 8758513 Bug: 8714114 Change-Id: If27f55a40f95402923d59d162db0c7cc29eabba4
Diffstat (limited to 'gallerycommon/src')
-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 f6439f1ad..dde4c567a 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -195,6 +195,9 @@ public class ApiHelper {
public static final boolean HAS_MEDIA_MUXER =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2;
+ public static final boolean HAS_DISPLAY_LISTENER =
+ Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {