diff options
author | Doris Liu <tianliu@google.com> | 2012-11-02 18:22:07 -0700 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2012-11-02 18:23:56 -0700 |
commit | fdcec9b0e2583290a9b0e40f628272944d0f2c5f (patch) | |
tree | d3f5be90efe7033729151cb9d218b95f95d3d9a1 /gallerycommon/src/com/android | |
parent | e6c187db8d5ac6c1c05761475533b151f95a5296 (diff) | |
download | android_packages_apps_Gallery2-fdcec9b0e2583290a9b0e40f628272944d0f2c5f.tar.gz android_packages_apps_Gallery2-fdcec9b0e2583290a9b0e40f628272944d0f2c5f.tar.bz2 android_packages_apps_Gallery2-fdcec9b0e2583290a9b0e40f628272944d0f2c5f.zip |
Add API check for method announceForAccessibility
Bug: 7434841
Change-Id: Ib97a322b4cdb1e1ca81d6ffa092e40f5ae172cb4
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 837777e51..c13e81e64 100644 --- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java +++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java @@ -170,6 +170,9 @@ public class ApiHelper { public static final boolean HAS_POST_ON_ANIMATION = Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; + public static final boolean HAS_ANNOUNCE_FOR_ACCESSIBILITY = + Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; + public static int getIntFieldIfExists(Class<?> klass, String fieldName, Class<?> obj, int defaultVal) { try { |