From 026f5ae50aa45536805c286f03775e1c28c4b983 Mon Sep 17 00:00:00 2001 From: Pin Ting Date: Wed, 19 Sep 2012 15:05:28 +0800 Subject: Use 565 pixel format for pre-JB; use 888 otherwise. Bug:7189512 Change-Id: Iec5d528fef4f4fc589370339add299a40fc8f26e --- gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gallerycommon') 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; -- cgit v1.2.3