diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-11-13 10:39:38 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-11-16 10:09:27 -0800 |
commit | 4523405aae7df882bf579cd0257335e3ba267258 (patch) | |
tree | 792718ce7b796a5020d02f8a5bb2c255af4d0ec0 /gallerycommon/src/com/android | |
parent | c56ddd3de2c9571e0561b1c7295b502927d7b1d4 (diff) | |
download | android_packages_apps_Snap-4523405aae7df882bf579cd0257335e3ba267258.tar.gz android_packages_apps_Snap-4523405aae7df882bf579cd0257335e3ba267258.tar.bz2 android_packages_apps_Snap-4523405aae7df882bf579cd0257335e3ba267258.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/src/com/android')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 3 |
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 { |