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 | 5ea922b6372ff5f58e25e129cbc9461231f972a7 (patch) | |
tree | 5951f1bf88db2092105576a134afa3f409bdd02e /gallerycommon | |
parent | 87398a2d95bc36168bfada5318902f4f561d9b27 (diff) | |
download | android_packages_apps_Snap-5ea922b6372ff5f58e25e129cbc9461231f972a7.tar.gz android_packages_apps_Snap-5ea922b6372ff5f58e25e129cbc9461231f972a7.tar.bz2 android_packages_apps_Snap-5ea922b6372ff5f58e25e129cbc9461231f972a7.zip |
Add API check for method announceForAccessibility
Bug: 7434841
Change-Id: Ib97a322b4cdb1e1ca81d6ffa092e40f5ae172cb4
Diffstat (limited to 'gallerycommon')
-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 { |