diff options
author | Owen Lin <owenlin@google.com> | 2012-08-15 02:10:19 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-08-15 02:10:28 -0700 |
commit | a987b12c396ef9b0482c4ca827131db125bf8ef8 (patch) | |
tree | 962b051cbfcd14182d5cfd128d4ee4372289292d /gallerycommon/src/com | |
parent | 2ca946798edb9921847ff411f3c747e441d79824 (diff) | |
parent | 92f8a567fb47496df3a6b3f4a68b5359b0371fd2 (diff) | |
download | android_packages_apps_Snap-a987b12c396ef9b0482c4ca827131db125bf8ef8.tar.gz android_packages_apps_Snap-a987b12c396ef9b0482c4ca827131db125bf8ef8.tar.bz2 android_packages_apps_Snap-a987b12c396ef9b0482c4ca827131db125bf8ef8.zip |
Merge "Add SimpleMenuXXX implementation for the Gingerbread platform." into gb-ub-photos-arches
Diffstat (limited to 'gallerycommon/src/com')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 5 |
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); |