summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android
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
commit622246a1cb249f6b7619067939b10972cdc379c1 (patch)
treecae9435cc89f2f4ca457427b50ed410b8b0e09da /gallerycommon/src/com/android
parent714f5b3197152fea7b237882462367791e403599 (diff)
downloadandroid_packages_apps_Snap-622246a1cb249f6b7619067939b10972cdc379c1.tar.gz
android_packages_apps_Snap-622246a1cb249f6b7619067939b10972cdc379c1.tar.bz2
android_packages_apps_Snap-622246a1cb249f6b7619067939b10972cdc379c1.zip
Add API check for view transformation properties.
Ex: View.setTranslationX, View.setPivotX, etc. bug:6982696 Change-Id: Ib9fc5f3d7c83d99ced47dcd79dfee430d7ad67c8
Diffstat (limited to 'gallerycommon/src/com/android')
-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;