mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
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:
parent
ae6d7e55af
commit
4199e41fb8
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue