From 48ab020fa10500cb89d67782abd824d26339acfa Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Thu, 19 Jul 2012 17:11:06 +0800 Subject: Do not use ShareActionProvider before API 14. Use simple share intent before API 14. bug:6706723 Change-Id: I47930f0b81c7c8c1943054964a093967a7704bf1 --- gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gallerycommon/src/com/android/gallery3d/common') 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 { -- cgit v1.2.3