diff options
author | Pin Ting <pinting@google.com> | 2012-07-30 16:11:24 -0700 |
---|---|---|
committer | Pin Ting <pinting@google.com> | 2012-07-30 16:11:24 -0700 |
commit | f3b0384acb06f1615c4d3ed2c7c2dff8090fe7b0 (patch) | |
tree | 45d852b41b506dfb1b07d2ee4db918a30579b5f1 /gallerycommon/src/com/android/gallery3d/common | |
parent | c8c62ea8c9f27e9c06e671cad7ff4a7ab64bfa0f (diff) | |
download | android_packages_apps_Snap-f3b0384acb06f1615c4d3ed2c7c2dff8090fe7b0.tar.gz android_packages_apps_Snap-f3b0384acb06f1615c4d3ed2c7c2dff8090fe7b0.tar.bz2 android_packages_apps_Snap-f3b0384acb06f1615c4d3ed2c7c2dff8090fe7b0.zip |
Don't use QUALITY_xxxP and hasProfile prior to API level 11.
Bug:6900688
Change-Id: I4b852a3727e46a9bd3ebb55c726e64519f9c2092
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common')
-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 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 { |