summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2012-07-20 15:59:50 +0800
committerAngus Kong <shkong@google.com>2012-07-20 16:03:56 +0800
commit6332c9943afd4b708ab84a82023b3aaec900971c (patch)
tree64d15cd7b2efd87e1497dcc70dbb8bd002ba29b0 /gallerycommon/src
parent84629ee950ade6f1e6beefacbe06cc110b987124 (diff)
downloadandroid_packages_apps_Snap-6332c9943afd4b708ab84a82023b3aaec900971c.tar.gz
android_packages_apps_Snap-6332c9943afd4b708ab84a82023b3aaec900971c.tar.bz2
android_packages_apps_Snap-6332c9943afd4b708ab84a82023b3aaec900971c.zip
Add check for camcorder zoom.
bug:6838676 Change-Id: I9aeda27cf55ded444841ade40ea1eb1b91da01cb
Diffstat (limited to 'gallerycommon/src')
-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 229eaedc3..d586ca47f 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -101,6 +101,9 @@ public class ApiHelper {
public static final boolean HAS_TIME_LAPSE_RECORDING =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+ public static final boolean HAS_CAMCORDER_ZOOM =
+ Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {