commit | 362f50ca3adea7a13302e22b07bd9a45a952333b | [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 | 1894482413ec9a7555f93b905e8d3f5395b14753 | |
parent | b4cadafb8c454aff10b4096a801cc71f8519fe8a [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);