summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2012-11-02 18:22:07 -0700
committerDoris Liu <tianliu@google.com>2012-11-02 18:23:56 -0700
commit5ea922b6372ff5f58e25e129cbc9461231f972a7 (patch)
tree5951f1bf88db2092105576a134afa3f409bdd02e /gallerycommon/src/com/android/gallery3d/common
parent87398a2d95bc36168bfada5318902f4f561d9b27 (diff)
downloadandroid_packages_apps_Snap-5ea922b6372ff5f58e25e129cbc9461231f972a7.zip
android_packages_apps_Snap-5ea922b6372ff5f58e25e129cbc9461231f972a7.tar.gz
android_packages_apps_Snap-5ea922b6372ff5f58e25e129cbc9461231f972a7.tar.bz2
Add API check for method announceForAccessibility
Bug: 7434841 Change-Id: Ib97a322b4cdb1e1ca81d6ffa092e40f5ae172cb4
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java3
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 837777e..c13e81e 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 {