summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src
diff options
context:
space:
mode:
authorPin Ting <pinting@google.com>2012-07-30 16:11:24 -0700
committerPin Ting <pinting@google.com>2012-07-30 16:11:24 -0700
commit9bea81c2ae6d2d5be8643511ea7e644a26231868 (patch)
tree6c570644602f44394f581cb614426b828acebd63 /gallerycommon/src
parent3ff33ee566475998767adff1f32e5aa42d27ea3c (diff)
downloadandroid_packages_apps_Snap-9bea81c2ae6d2d5be8643511ea7e644a26231868.tar.gz
android_packages_apps_Snap-9bea81c2ae6d2d5be8643511ea7e644a26231868.tar.bz2
android_packages_apps_Snap-9bea81c2ae6d2d5be8643511ea7e644a26231868.zip
Don't use QUALITY_xxxP and hasProfile prior to API level 11.
Bug:6900688 Change-Id: I4b852a3727e46a9bd3ebb55c726e64519f9c2092
Diffstat (limited to 'gallerycommon/src')
-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 {