summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-07-17 16:50:31 +0800
committerOwen Lin <owenlin@google.com>2012-08-15 16:57:18 +0800
commit92f8a567fb47496df3a6b3f4a68b5359b0371fd2 (patch)
tree436ed5d845a9d47b1f4516f793b57a6efa3ce331 /gallerycommon/src/com/android/gallery3d/common
parent7c1e03a70f54fb735e6ef59733a02131579ae1f8 (diff)
downloadandroid_packages_apps_Snap-92f8a567fb47496df3a6b3f4a68b5359b0371fd2.tar.gz
android_packages_apps_Snap-92f8a567fb47496df3a6b3f4a68b5359b0371fd2.tar.bz2
android_packages_apps_Snap-92f8a567fb47496df3a6b3f4a68b5359b0371fd2.zip
Add SimpleMenuXXX implementation for the Gingerbread platform.
1. Add a SimpleMenuInflator to parse the res/menu/xxx.xml files. 2. Add minimal code to show the menu. **NOTE** This change is going to be replaced by the ActionBar compat library when it gets ready and integrated. The purpose of this change is making Gallery/Camera run on GB. Change-Id: Ia7d402c82a6da1b9558ebbd103e161d2471b34dd
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
index 9beac8807..406c5263c 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -163,10 +163,13 @@ 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;
+ public static final boolean HAS_ACTION_BAR =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
private static boolean hasField(Class<?> klass, String fieldName) {
try {
klass.getDeclaredField(fieldName);