summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2012-08-07 17:15:14 +0800
committerAngus Kong <shkong@google.com>2012-08-07 17:17:21 +0800
commitfbf6dbaf20e1508f19468c33021813d078afdb35 (patch)
treee99b70720f789c0c527662015f236db727d8d88a /gallerycommon/src/com/android
parent51fbbcf9abe7528ee4b8d083fa3b6c2426e69688 (diff)
downloadandroid_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')
-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 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);