From ea1d1d283f6e75f012fe091608cf0b588866a511 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Sat, 25 Aug 2012 21:10:04 +0800 Subject: Add api check for camera HDR. bug:7054776 Change-Id: Id551b7f1d76168b7735f0a48c19619431b93b66e --- gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gallerycommon/src/com/android') 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; -- cgit v1.2.3