summaryrefslogtreecommitdiffstats
path: root/gallerycommon
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-07-31 14:22:02 +0800
committerOwen Lin <owenlin@google.com>2012-08-01 16:57:47 +0800
commit90df352389eda7c964e6a43a0b752d27f16e02a7 (patch)
tree4cbaf578448d42482ddf644ecbba9cc7854305ad /gallerycommon
parent4febde56c93bcc8662a56f2334718f1d1b1f6fff (diff)
downloadandroid_packages_apps_Gallery2-90df352389eda7c964e6a43a0b752d27f16e02a7.tar.gz
android_packages_apps_Gallery2-90df352389eda7c964e6a43a0b752d27f16e02a7.tar.bz2
android_packages_apps_Gallery2-90df352389eda7c964e6a43a0b752d27f16e02a7.zip
Don't use Files.getContentUri in previous API levels.
Change-Id: I4d096734d22c93b83b2bf8082450ad0d73ade837
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 ac14d9bbd..54b0587e8 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -146,6 +146,9 @@ public class ApiHelper {
public static final boolean HAS_ACTION_BAR_SET_HOME_BUTTON_ENABLED =
Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
+ public static final boolean HAS_MEDIA_PROVIDER_FILES_TABLE =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
private static boolean hasField(Class<?> klass, String fieldName) {
try {
klass.getDeclaredField(fieldName);