From: Wu-cheng Li Date: Tue, 25 Sep 2012 09:45:03 +0000 (+0800) Subject: Add API check for "context" input port of effects recording. X-Git-Tag: android-x86-7.1-r1~1268^2~390 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=62e8403c;p=android-x86%2Fpackages-apps-Gallery2.git Add API check for "context" input port of effects recording. bug:7106963 Change-Id: Ia065903dd120bf20862c6adfd8a699277a27ac50 --- 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;