summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android
diff options
context:
space:
mode:
authorPin Ting <pinting@google.com>2012-08-08 11:50:31 -0700
committerPin Ting <pinting@google.com>2012-08-08 11:50:31 -0700
commit910935b67775d03def8769884bbac910892b6e24 (patch)
tree9f1d9bb1e78d95bb482b08baaf66b0c023cfa5b5 /gallerycommon/src/com/android
parent788d039b2fe8724916e228c86fbd73bd69a30797 (diff)
downloadandroid_packages_apps_Gallery2-910935b67775d03def8769884bbac910892b6e24.tar.gz
android_packages_apps_Gallery2-910935b67775d03def8769884bbac910892b6e24.tar.bz2
android_packages_apps_Gallery2-910935b67775d03def8769884bbac910892b6e24.zip
Don't use getPreferredPreviewSizeForVideo and getSupportedVideoSizes before api 11.
Bug:6927815 Change-Id: Ifaa154c93536cfcc65fb1c67834dc737f2065f11
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 6ae1bab2f..9beac8807 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -136,6 +136,9 @@ public class ApiHelper {
public static final boolean HAS_EFFECTS_RECORDING =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+ public static final boolean HAS_GET_SUPPORTED_VIDEO_SIZE =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {