Default to allow focusing in continuous-picture mode (#1186)

* This is supported on almost all devices now, and they handle this pretty
   well. Additionally, this workarounds a bug in some devices which auto mode
   will hang forever for unknown reason.
This commit is contained in:
Wang Han 2019-07-05 03:55:58 +08:00 committed by Sean Owen
parent ae6d7e55af
commit 4199e41fb8
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@
<PreferenceCategory android:title="@string/preferences_device_bug_workarounds_title">
<CheckBoxPreference
android:key="preferences_disable_continuous_focus"
android:defaultValue="true"
android:defaultValue="false"
android:title="@string/preferences_disable_continuous_focus_title"
android:summary="@string/preferences_disable_continuous_focus_summary"/>
<CheckBoxPreference

View file

@ -161,7 +161,7 @@ final class CameraConfigurationManager {
CameraConfigurationUtils.setFocus(
parameters,
prefs.getBoolean(PreferencesActivity.KEY_AUTO_FOCUS, true),
prefs.getBoolean(PreferencesActivity.KEY_DISABLE_CONTINUOUS_FOCUS, true),
prefs.getBoolean(PreferencesActivity.KEY_DISABLE_CONTINUOUS_FOCUS, false),
safeMode);
if (!safeMode) {