diff options
| author | Owen Lin <owenlin@google.com> | 2012-08-07 17:38:47 +0800 |
|---|---|---|
| committer | Owen Lin <owenlin@google.com> | 2012-08-08 12:03:55 +0800 |
| commit | ba04cb7a9c5e57a166f8057950711ec7b8da2ba4 (patch) | |
| tree | 0ef5adca86a3e7fc463304e2973ed76f8fc0a972 /gallerycommon/src/com/android | |
| parent | 28038df8ccc1422541276974e9cf140fd4b76f1e (diff) | |
| download | android_packages_apps_Gallery2-ba04cb7a9c5e57a166f8057950711ec7b8da2ba4.tar.gz android_packages_apps_Gallery2-ba04cb7a9c5e57a166f8057950711ec7b8da2ba4.tar.bz2 android_packages_apps_Gallery2-ba04cb7a9c5e57a166f8057950711ec7b8da2ba4.zip | |
Guard the usage of MenuItem.setShowAsAction in MenuHelper.
bug: 6927642
Change-Id: I3907ac2f86d38c15b681185abee5906ce243339a
Diffstat (limited to 'gallerycommon/src/com/android')
| -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 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 { |
