diff options
author | Angus Kong <shkong@google.com> | 2012-08-07 17:15:14 +0800 |
---|---|---|
committer | Angus Kong <shkong@google.com> | 2012-08-07 17:17:21 +0800 |
commit | fbf6dbaf20e1508f19468c33021813d078afdb35 (patch) | |
tree | e99b70720f789c0c527662015f236db727d8d88a /gallerycommon/src/com/android/gallery3d/common | |
parent | 51fbbcf9abe7528ee4b8d083fa3b6c2426e69688 (diff) | |
download | android_packages_apps_Snap-fbf6dbaf20e1508f19468c33021813d078afdb35.tar.gz android_packages_apps_Snap-fbf6dbaf20e1508f19468c33021813d078afdb35.tar.bz2 android_packages_apps_Snap-fbf6dbaf20e1508f19468c33021813d078afdb35.zip |
Add check for using SurfaceTexture when recording.
bug:6839752
Change-Id: Iafc6535fe057c7cd34264c6b104d2326e2f56a89
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 dcea0e420..fbe0fbbb5 100644 --- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java +++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java @@ -155,6 +155,9 @@ public class ApiHelper { public static final boolean HAS_MEDIA_PROVIDER_FILES_TABLE = Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; + public static final boolean HAS_SURFACE_TEXTURE_RECORDING = + Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; + private static boolean hasField(Class<?> klass, String fieldName) { try { klass.getDeclaredField(fieldName); |