diff options
author | Pin Ting <pinting@google.com> | 2012-09-19 15:05:28 +0800 |
---|---|---|
committer | Pin Ting <pinting@google.com> | 2012-09-19 16:18:45 +0800 |
commit | c5378acab92e5d9428e35acc595f09c4bfcb3823 (patch) | |
tree | 40ff9da5fd7f754bcd479b33befcd65dd892d1a3 /gallerycommon | |
parent | ea412e3624c23a65812e86e1d2bf2b5ae7b1ed0a (diff) | |
download | android_packages_apps_Snap-c5378acab92e5d9428e35acc595f09c4bfcb3823.tar.gz android_packages_apps_Snap-c5378acab92e5d9428e35acc595f09c4bfcb3823.tar.bz2 android_packages_apps_Snap-c5378acab92e5d9428e35acc595f09c4bfcb3823.zip |
Use 565 pixel format for pre-JB; use 888 otherwise.
Bug:7189512
Change-Id: Iec5d528fef4f4fc589370339add299a40fc8f26e
Diffstat (limited to 'gallerycommon')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 3 |
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 20d7e1dc6..df6f94048 100644 --- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java +++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java @@ -38,6 +38,9 @@ public class ApiHelper { public static final int JELLY_BEAN_MR1 = 17; } + public static final boolean USE_888_PIXEL_FORMAT = + Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; + public static final boolean ENABLE_PHOTO_EDITOR = Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH; |