diff options
author | Wu-cheng Li <wuchengli@google.com> | 2012-08-25 21:10:04 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2012-08-28 15:06:39 +0800 |
commit | ea1d1d283f6e75f012fe091608cf0b588866a511 (patch) | |
tree | 31b80ace72d138a944c8b52f9b4ed7c555a7af01 /gallerycommon/src/com | |
parent | 65ba13d0361be253ebe913b83c7345a811566cf5 (diff) | |
download | android_packages_apps_Snap-ea1d1d283f6e75f012fe091608cf0b588866a511.tar.gz android_packages_apps_Snap-ea1d1d283f6e75f012fe091608cf0b588866a511.tar.bz2 android_packages_apps_Snap-ea1d1d283f6e75f012fe091608cf0b588866a511.zip |
Add api check for camera HDR.
bug:7054776
Change-Id: Id551b7f1d76168b7735f0a48c19619431b93b66e
Diffstat (limited to 'gallerycommon/src/com')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 4 |
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; |