summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-08-22 15:31:01 +0800
committerWu-cheng Li <wuchengli@google.com>2012-08-22 15:31:01 +0800
commitd41a508729ee04d0aab00c192c40570353b240d9 (patch)
treed6fa2aaec37e7ab15a41ddfa39e3d606e92b54f4 /gallerycommon/src
parent00892484b5fa2c7640cdfee48fc68cba206c2512 (diff)
downloadandroid_packages_apps_Gallery2-d41a508729ee04d0aab00c192c40570353b240d9.tar.gz
android_packages_apps_Gallery2-d41a508729ee04d0aab00c192c40570353b240d9.tar.bz2
android_packages_apps_Gallery2-d41a508729ee04d0aab00c192c40570353b240d9.zip
Add API check for view transformation properties.
Ex: View.setTranslationX, View.setPivotX, etc. bug:6982696 Change-Id: Ib9fc5f3d7c83d99ced47dcd79dfee430d7ad67c8
Diffstat (limited to 'gallerycommon/src')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
index 05f5b9141..819b56af7 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -160,6 +160,10 @@ public class ApiHelper {
public static final boolean HAS_ACTION_BAR =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+ // Ex: View.setTranslationX.
+ public static final boolean HAS_VIEW_TRANSFORM_PROPERTIES =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
public static final boolean CAN_START_PREVIEW_IN_JPEG_CALLBACK =
Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;