From 5ea922b6372ff5f58e25e129cbc9461231f972a7 Mon Sep 17 00:00:00 2001 From: Doris Liu Date: Fri, 2 Nov 2012 18:22:07 -0700 Subject: Add API check for method announceForAccessibility Bug: 7434841 Change-Id: Ib97a322b4cdb1e1ca81d6ffa092e40f5ae172cb4 --- gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gallerycommon/src') 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 { -- cgit v1.2.3