summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu-Cheng Li <wuchengli@google.com>2012-08-30 23:26:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-30 23:26:54 -0700
commitba8ed6b62dc7bcae6603aa9a3f77f138f64f34fb (patch)
tree5c4d87f15674992371e5af3f6dbfda84c85f0256
parentafebbfa1b19f70f5c197e781071fadaf560d778d (diff)
parenta552971b6a8124d8990b4b618fe9b9aea70d7c98 (diff)
downloadandroid_packages_apps_Snap-ba8ed6b62dc7bcae6603aa9a3f77f138f64f34fb.tar.gz
android_packages_apps_Snap-ba8ed6b62dc7bcae6603aa9a3f77f138f64f34fb.tar.bz2
android_packages_apps_Snap-ba8ed6b62dc7bcae6603aa9a3f77f138f64f34fb.zip
Merge "Add api check for FLAG_SECURE." 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 ca778365c..418e3cdd2 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -154,6 +154,9 @@ public class ApiHelper {
public static final boolean CAN_START_PREVIEW_IN_JPEG_CALLBACK =
Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
+ public static final boolean CAN_USE_FLAG_SECURE =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {