commit | fdcec9b0e2583290a9b0e40f628272944d0f2c5f | [log] [tgz] |
---|---|---|
author | Doris Liu <tianliu@google.com> | Fri Nov 02 18:22:07 2012 -0700 |
committer | Doris Liu <tianliu@google.com> | Fri Nov 02 18:23:56 2012 -0700 |
tree | d3f5be90efe7033729151cb9d218b95f95d3d9a1 | |
parent | e6c187db8d5ac6c1c05761475533b151f95a5296 [diff] |
Add API check for method announceForAccessibility Bug: 7434841 Change-Id: Ib97a322b4cdb1e1ca81d6ffa092e40f5ae172cb4
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 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 {