summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2012-07-25 01:51:19 +0800
committerAngus Kong <shkong@google.com>2012-07-26 06:45:06 +0800
commitafa4525b6b30eee943eac0d23dd84caba98eb740 (patch)
treebf3fbc4ec6062a8e28017524f12cc4cc48dc8f20 /gallerycommon/src/com/android/gallery3d
parent8666b54366e52f2ea5df5ce039a1e12370846486 (diff)
downloadandroid_packages_apps_Snap-afa4525b6b30eee943eac0d23dd84caba98eb740.tar.gz
android_packages_apps_Snap-afa4525b6b30eee943eac0d23dd84caba98eb740.tar.bz2
android_packages_apps_Snap-afa4525b6b30eee943eac0d23dd84caba98eb740.zip
Add check for camera focus/metering area.
bug:6881073 Change-Id: I6ea851befc9f95d4b3def3e7d04da7285be5a755
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d')
-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 85b17ba52..0d349f386 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -112,6 +112,9 @@ public class ApiHelper {
public static final boolean HAS_ZOOM_WHEN_RECORDING =
Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
+ public static final boolean HAS_CAMERA_FOCUS_AREA =
+ Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {