summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d
diff options
context:
space:
mode:
authorAhbong Chang <cwahbong@google.com>2012-08-30 15:16:50 +0800
committerAhbong Chang <cwahbong@google.com>2012-08-31 14:25:29 +0800
commita552971b6a8124d8990b4b618fe9b9aea70d7c98 (patch)
tree3fd9fb031991132cb9ae849cb6254d88119b9b69 /gallerycommon/src/com/android/gallery3d
parente05f0fa8b946d4eb5c8c8c0361150b90e877c87d (diff)
downloadandroid_packages_apps_Snap-a552971b6a8124d8990b4b618fe9b9aea70d7c98.zip
android_packages_apps_Snap-a552971b6a8124d8990b4b618fe9b9aea70d7c98.tar.gz
android_packages_apps_Snap-a552971b6a8124d8990b4b618fe9b9aea70d7c98.tar.bz2
Add api check for FLAG_SECURE.
Bug: 7023285 Change-Id: I515123a7454595846bbea6369c05cd22b7d2ec60
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d')
-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 ca77836..418e3cd 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 {