summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-08-07 17:38:47 +0800
committerOwen Lin <owenlin@google.com>2012-08-08 12:03:55 +0800
commitcc09b72dd272717d4b805bc091893f8e2303567f (patch)
treebf5aaee043ab3719aa8a20e6ca2c7bf0115d51f0 /gallerycommon/src/com/android/gallery3d/common
parent6da4724e8d21e0e3df809a832c72365528959b27 (diff)
downloadandroid_packages_apps_Snap-cc09b72dd272717d4b805bc091893f8e2303567f.tar.gz
android_packages_apps_Snap-cc09b72dd272717d4b805bc091893f8e2303567f.tar.bz2
android_packages_apps_Snap-cc09b72dd272717d4b805bc091893f8e2303567f.zip
Guard the usage of MenuItem.setShowAsAction in MenuHelper.
bug: 6927642 Change-Id: I3907ac2f86d38c15b681185abee5906ce243339a
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common')
-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 3150442c7..6ae1bab2f 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -160,6 +160,9 @@ public class ApiHelper {
public static final boolean HAS_SURFACE_TEXTURE_RECORDING =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+
+ public static final boolean HAS_MENU_ITEM_SHOW_AS_ACTION =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
private static boolean hasField(Class<?> klass, String fieldName) {
try {