summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src
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
commit4523405aae7df882bf579cd0257335e3ba267258 (patch)
tree792718ce7b796a5020d02f8a5bb2c255af4d0ec0 /gallerycommon/src
parentc56ddd3de2c9571e0561b1c7295b502927d7b1d4 (diff)
downloadandroid_packages_apps_Snap-4523405aae7df882bf579cd0257335e3ba267258.zip
android_packages_apps_Snap-4523405aae7df882bf579cd0257335e3ba267258.tar.gz
android_packages_apps_Snap-4523405aae7df882bf579cd0257335e3ba267258.tar.bz2
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/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 c13e81e..e043274 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 {