diff options
author | Wu-cheng Li <wuchengli@google.com> | 2012-07-19 17:11:06 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2012-08-01 13:14:33 +0800 |
commit | 319e47a40cb1ff7bed70c1659c316af1041516ad (patch) | |
tree | e6a1b7810284d5a7a5d11a2eb34ca1071c402e28 /gallerycommon/src/com/android/gallery3d | |
parent | ebd718780e2439cf30ba124b66c24f5253deedb2 (diff) | |
download | android_packages_apps_Snap-319e47a40cb1ff7bed70c1659c316af1041516ad.tar.gz android_packages_apps_Snap-319e47a40cb1ff7bed70c1659c316af1041516ad.tar.bz2 android_packages_apps_Snap-319e47a40cb1ff7bed70c1659c316af1041516ad.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/android/gallery3d')
-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 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 { |