summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-08-25 21:10:04 +0800
committerWu-cheng Li <wuchengli@google.com>2012-08-28 15:06:39 +0800
commit862f237b9ccef1ed5a7b2e9e1b8d5d291709d7e0 (patch)
treec51a3c5d210266d5f14a4b811fc31f4e7fab8842
parent4a52b40a06fa7bb8fd11c88af0c21cf290e45b39 (diff)
downloadandroid_packages_apps_Snap-862f237b9ccef1ed5a7b2e9e1b8d5d291709d7e0.tar.gz
android_packages_apps_Snap-862f237b9ccef1ed5a7b2e9e1b8d5d291709d7e0.tar.bz2
android_packages_apps_Snap-862f237b9ccef1ed5a7b2e9e1b8d5d291709d7e0.zip
Add api check for camera HDR.
bug:7054776 Change-Id: Id551b7f1d76168b7735f0a48c19619431b93b66e
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
index c726719a8..402424123 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -35,6 +35,7 @@ public class ApiHelper {
public static final int ICE_CREAM_SANDWICH = 14;
public static final int ICE_CREAM_SANDWICH_MR1 = 15;
public static final int JELLY_BEAN = 16;
+ public static final int JELLY_BEAN_MR1 = 17;
}
public static final boolean ENABLE_PHOTO_EDITOR =
@@ -147,6 +148,9 @@ public class ApiHelper {
public static final boolean HAS_VIEW_TRANSFORM_PROPERTIES =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+ public static final boolean HAS_CAMERA_HDR =
+ Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1;
+
public static final boolean CAN_START_PREVIEW_IN_JPEG_CALLBACK =
Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;