summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-07-04 16:54:02 +0800
committerChih-Chung Chang <chihchung@google.com>2012-07-04 16:54:02 +0800
commit2842c13febedd5a4fe5cf06ada8418d0098a5d6d (patch)
tree6f9608e50822fb34da7432a3a9910560c5f86e0b /gallerycommon/src/com/android/gallery3d/common
parent59b53e0547413da04cb4c7409f8331dc5d8481f2 (diff)
downloadandroid_packages_apps_Snap-2842c13febedd5a4fe5cf06ada8418d0098a5d6d.tar.gz
android_packages_apps_Snap-2842c13febedd5a4fe5cf06ada8418d0098a5d6d.tar.bz2
android_packages_apps_Snap-2842c13febedd5a4fe5cf06ada8418d0098a5d6d.zip
Don't use AutoFocusMoveCallback on older platforms.
Change-Id: I281888ee88c08b1caf4754e714f0f42c75e26dd9
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 c1724a825..4545b92f3 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -57,6 +57,9 @@ public class ApiHelper {
public static final boolean HAS_MTP =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1;
+ public static final boolean HAS_AUTO_FOCUS_MOVE_CALLBACK =
+ Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+
private static boolean hasField(Class<?> klass, String fieldName) {
try {
klass.getDeclaredField(fieldName);