diff options
-rw-r--r-- | res/values/config.xml | 3 | ||||
-rwxr-xr-x | src/com/android/camera/CameraSettings.java | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml index 342105349..cb78e532c 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -74,6 +74,9 @@ <!-- Minimum picture size (in pixel) to include in selection list --> <integer name="minimum_picture_size">900000</integer> + <!-- Enable support for image stabilization --> + <bool name="support_dis">true</bool> + <!-- Enable support for bokeh mode --> <bool name="support_bokeh_mode">false</bool> </resources> diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index 88488426f..c9889b892 100755 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -301,6 +301,7 @@ public class CameraSettings { public static String mKeyIso = null; public static String mKeyIsoValues = null; + private static boolean mSupportDis = false; private static boolean mSupportBokehMode = false; private static final HashMap<Integer, String> @@ -491,6 +492,9 @@ public class CameraSettings { Log.d(TAG, "Using key for iso-values: " + mKeyIsoValues); } + // Image stabilization + mSupportDis = mContext.getResources().getBoolean(R.bool.support_dis); + // Bokeh mode mSupportBokehMode = mContext.getResources().getBoolean(R.bool.support_bokeh_mode); } @@ -631,6 +635,8 @@ public class CameraSettings { } public static List<String> getSupportedDISModes(Parameters params) { + if (!mSupportDis) + return null; String str = params.get(KEY_QC_SUPPORTED_DIS_MODES); if (str == null) { return null; |