summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android
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
commit6f9a145d14b9cb1a7406b11a76deb5ec595d3bb9 (patch)
treeff5def4b91ef04b2d3c1c0baab1b5c2cb43c4443 /gallerycommon/src/com/android
parent8538bbdd8bdf14e29f5c7a092ee824c1a675c0c0 (diff)
downloadandroid_packages_apps_Snap-6f9a145d14b9cb1a7406b11a76deb5ec595d3bb9.tar.gz
android_packages_apps_Snap-6f9a145d14b9cb1a7406b11a76deb5ec595d3bb9.tar.bz2
android_packages_apps_Snap-6f9a145d14b9cb1a7406b11a76deb5ec595d3bb9.zip
Add check for camera focus/metering area.
bug:6881073 Change-Id: I6ea851befc9f95d4b3def3e7d04da7285be5a755
Diffstat (limited to 'gallerycommon/src/com/android')
-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 {