diff options
author | Wu-cheng Li <wuchengli@google.com> | 2012-09-25 17:45:03 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2012-09-25 18:00:09 +0800 |
commit | 62e8403c69f4a82a4023651499a88f15eaa47fa5 (patch) | |
tree | 9580982d04b1f5d61bf778f76b8396d2ead89c62 /gallerycommon | |
parent | 7c79f6cab19e60d887a42b03fb123bb0358141b5 (diff) | |
download | android_packages_apps_Gallery2-62e8403c69f4a82a4023651499a88f15eaa47fa5.tar.gz android_packages_apps_Gallery2-62e8403c69f4a82a4023651499a88f15eaa47fa5.tar.bz2 android_packages_apps_Gallery2-62e8403c69f4a82a4023651499a88f15eaa47fa5.zip |
Add API check for "context" input port of effects recording.
bug:7106963
Change-Id: Ia065903dd120bf20862c6adfd8a699277a27ac50
Diffstat (limited to 'gallerycommon')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java index 06fb9d902..cfdde1598 100644 --- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java +++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java @@ -133,6 +133,10 @@ public class ApiHelper { public static final boolean HAS_EFFECTS_RECORDING = Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; + // "Background" filter does not have "context" input port in jelly bean. + public static final boolean HAS_EFFECTS_RECORDING_CONTEXT_INPUT = + Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1; + public static final boolean HAS_GET_SUPPORTED_VIDEO_SIZE = Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; |