summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common
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
commit1e0f6e9760727d78bca4d861c1013ae78cddb5e5 (patch)
tree546e4b97f467c220f89441011a84b1e224675875 /gallerycommon/src/com/android/gallery3d/common
parent5926da91e2cf4005cc2c7e89fe297d05a4b630c3 (diff)
downloadandroid_packages_apps_Snap-1e0f6e9760727d78bca4d861c1013ae78cddb5e5.tar.gz
android_packages_apps_Snap-1e0f6e9760727d78bca4d861c1013ae78cddb5e5.tar.bz2
android_packages_apps_Snap-1e0f6e9760727d78bca4d861c1013ae78cddb5e5.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.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);