summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-07-19 17:11:06 +0800
committerWu-cheng Li <wuchengli@google.com>2012-08-01 13:14:33 +0800
commit48ab020fa10500cb89d67782abd824d26339acfa (patch)
treeb3d8986777d6c29b239cc20528cf0438d2b15d8c /gallerycommon/src/com
parenteea522754d385c30d1918ab27c52e09d631ac7be (diff)
downloadandroid_packages_apps_Snap-48ab020fa10500cb89d67782abd824d26339acfa.tar.gz
android_packages_apps_Snap-48ab020fa10500cb89d67782abd824d26339acfa.tar.bz2
android_packages_apps_Snap-48ab020fa10500cb89d67782abd824d26339acfa.zip
Do not use ShareActionProvider before API 14.
Use simple share intent before API 14. bug:6706723 Change-Id: I47930f0b81c7c8c1943054964a093967a7704bf1
Diffstat (limited to 'gallerycommon/src/com')
-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 9267c0ea9..ac14d9bbd 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -124,6 +124,9 @@ public class ApiHelper {
public static final boolean HAS_MOTION_EVENT_TRANSFORM =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+ public static final boolean HAS_SHARE_ACTION_PROVIDER =
+ Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {