summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPin Ting <pinting@google.com>2012-07-30 21:39:26 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-30 21:39:26 -0700
commitb676383b7fb40ec07f19ae5193d110f4a55ea84f (patch)
treee9923ee209f43dbaf86c33a1d9f33a025587e534
parent43a8826d61d4cc66ed2faa7e0c60fd00175f9be9 (diff)
parent4d063b338503dc81e9b16b89bc171a98b59fe6a9 (diff)
downloadandroid_packages_apps_Gallery2-b676383b7fb40ec07f19ae5193d110f4a55ea84f.tar.gz
android_packages_apps_Gallery2-b676383b7fb40ec07f19ae5193d110f4a55ea84f.tar.bz2
android_packages_apps_Gallery2-b676383b7fb40ec07f19ae5193d110f4a55ea84f.zip
Merge "Don't use QUALITY_xxxP and hasProfile prior to API level 11." into gb-ub-photos-arches
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java3
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 c46d90a65..24cb75868 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -115,6 +115,9 @@ public class ApiHelper {
public static final boolean HAS_CAMERA_FOCUS_AREA =
Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
+ public static final boolean HAS_FINE_RESOLUTION_QUALITY_LEVELS =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {