summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-06-28 17:12:20 +0800
committerOwen Lin <owenlin@google.com>2012-07-03 18:05:47 +0800
commit7aac26484af3d40df81e1d08c673bd925856a7fa (patch)
tree4f444fc13ca1ee651f2e5e75787b5f1c16cef9eb /gallerycommon/src/com/android
parentce8b4485801843c14abc3654e57aad96d1364e49 (diff)
downloadandroid_packages_apps_Snap-7aac26484af3d40df81e1d08c673bd925856a7fa.tar.gz
android_packages_apps_Snap-7aac26484af3d40df81e1d08c673bd925856a7fa.tar.bz2
android_packages_apps_Snap-7aac26484af3d40df81e1d08c673bd925856a7fa.zip
Don't reuse bitmap before HoneyComb.
Change-Id: I0df9bf0a8f43e28ed25b436d4c584dc3ceb43c1d
Diffstat (limited to 'gallerycommon/src/com/android')
-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 85b092576..32c3a9c98 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -44,6 +44,9 @@ public class ApiHelper {
public static final boolean HAS_REUSING_BITMAP_IN_BITMAP_REGION_DECODER =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+ public static final boolean HAS_REUSING_BITMAP_IN_BITMAP_FACTORY =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
private static boolean hasField(Class<?> klass, String fieldName) {
try {
klass.getDeclaredField(fieldName);