commit | a2cb30b688131380cab763a1b4da25f15a9fa45a | [log] [tgz] |
---|---|---|
author | Owen Lin <owenlin@google.com> | Wed Jul 04 18:20:13 2012 +0800 |
committer | Owen Lin <owenlin@google.com> | Thu Jul 05 14:23:51 2012 +0800 |
tree | f4d7d812837ef72acba920ae50ad3d863a4d219b | |
parent | b1eb01cd02d1e75e6b9c3e593f6ff34335e2ca8a [diff] [blame] |
Don't show the shuffle and album widget for old platforms Change-Id: Ide7074025aefe289bf6c71d623eac5100ab72932
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java index 305fb2c..0651810 100644 --- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java +++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -64,6 +64,9 @@ public static final boolean HAS_ACTIVITY_INVALIDATE_OPTIONS_MENU = hasMethod(Activity.class, "invalidateOptionsMenu"); + public static final boolean HAS_REMOTE_VIEWS_SERVICE = + Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; + private static boolean hasField(Class<?> klass, String fieldName) { try { klass.getDeclaredField(fieldName);