summaryrefslogtreecommitdiffstats
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
commit157f891aa9ff56c047a7f4a3809958bbe7e6e58b (patch)
treeb8f6eb82a6f582df2c25df527b6e6ef39bf344a4
parent73270c1a66972666f6f7f5d1d1756780c97366f0 (diff)
downloadandroid_packages_apps_Snap-157f891aa9ff56c047a7f4a3809958bbe7e6e58b.tar.gz
android_packages_apps_Snap-157f891aa9ff56c047a7f4a3809958bbe7e6e58b.tar.bz2
android_packages_apps_Snap-157f891aa9ff56c047a7f4a3809958bbe7e6e58b.zip
Add API check for view transformation properties.
Ex: View.setTranslationX, View.setPivotX, etc. bug:6982696 Change-Id: Ib9fc5f3d7c83d99ced47dcd79dfee430d7ad67c8
-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;