summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-08-07 15:07:42 +0800
committerWu-cheng Li <wuchengli@google.com>2012-08-07 15:41:11 +0800
commit8df785a5c11d728892102f0faefc0d3c719bc207 (patch)
tree7c61283eac6ef685029a6f11700e50a4be6f9845 /gallerycommon/src/com/android/gallery3d/common
parent6ae93dbed7938eccdb5273dfc6655d65a9546343 (diff)
downloadandroid_packages_apps_Snap-8df785a5c11d728892102f0faefc0d3c719bc207.tar.gz
android_packages_apps_Snap-8df785a5c11d728892102f0faefc0d3c719bc207.tar.bz2
android_packages_apps_Snap-8df785a5c11d728892102f0faefc0d3c719bc207.zip
Add API check for surface texture.
bug:6927809 Change-Id: I4b08df6670337592bb0ac1c2cf1235af085e9a1d
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 54b0587e8..f95fb81df 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -63,6 +63,9 @@ public class ApiHelper {
public static final boolean HAS_RELEASE_SURFACE_TEXTURE = hasMethod(
"android.graphics.SurfaceTexture", "release");
+ public static final boolean HAS_SURFACE_TEXTURE =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
public static final boolean HAS_MTP =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1;