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
commit29446731c8cfa6e0456fe8b39fc3ce21c69207a6 (patch)
tree0056200a4b8a0aabe6d9001f233ba6c7347abab5 /gallerycommon
parente7e234f2d41dbf2d3a3d1bd7669d848f2c8ac66d (diff)
downloadandroid_packages_apps_Snap-29446731c8cfa6e0456fe8b39fc3ce21c69207a6.tar.gz
android_packages_apps_Snap-29446731c8cfa6e0456fe8b39fc3ce21c69207a6.tar.bz2
android_packages_apps_Snap-29446731c8cfa6e0456fe8b39fc3ce21c69207a6.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);