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
commit56f214d21ea696e8b5d721b64fa4958ab1bf6686 (patch)
tree750fcf7b8b26321152a2645bcfcf733c494639c5 /gallerycommon/src
parent99996e3b7d581a25d12cad8c00740221f2e1d922 (diff)
downloadandroid_packages_apps_Snap-56f214d21ea696e8b5d721b64fa4958ab1bf6686.zip
android_packages_apps_Snap-56f214d21ea696e8b5d721b64fa4958ab1bf6686.tar.gz
android_packages_apps_Snap-56f214d21ea696e8b5d721b64fa4958ab1bf6686.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 {