summaryrefslogtreecommitdiffstats
path: root/gallerycommon
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-11-13 10:39:38 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2012-11-16 10:09:27 -0800
commitb5f374c30d06dc0409891f85a4bd5e1e3ddf8700 (patch)
tree38d97242b22e1e901bf64542500597488e84ffb5 /gallerycommon
parent44dd798c3a814ffbdecc5adbc73dc47dc4dec646 (diff)
downloadandroid_packages_apps_Gallery2-b5f374c30d06dc0409891f85a4bd5e1e3ddf8700.tar.gz
android_packages_apps_Gallery2-b5f374c30d06dc0409891f85a4bd5e1e3ddf8700.tar.bz2
android_packages_apps_Gallery2-b5f374c30d06dc0409891f85a4bd5e1e3ddf8700.zip
Video: Fix crash in trimming/muting video in GB.
Basically switched to use sherlock actionbar and protect various new methods with API level check. bug:7546257 Change-Id: Ic16f75126c619578a9e9c2520fa264687d89a2e6
Diffstat (limited to 'gallerycommon')
-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 c13e81e64..e0432749e 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -173,6 +173,9 @@ public class ApiHelper {
public static final boolean HAS_ANNOUNCE_FOR_ACCESSIBILITY =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+ public static final boolean HAS_OBJECT_ANIMATION =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {