For #6737 - Set Logins checkbox default to true
parent
e8913474a0
commit
bb85de5dca
|
@ -256,7 +256,7 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
|
||||||
val loginsNameKey = getPreferenceKey(R.string.pref_key_sync_logins)
|
val loginsNameKey = getPreferenceKey(R.string.pref_key_sync_logins)
|
||||||
findPreference<CheckBoxPreference>(loginsNameKey)?.apply {
|
findPreference<CheckBoxPreference>(loginsNameKey)?.apply {
|
||||||
isEnabled = syncEnginesStatus.containsKey(SyncEngine.Passwords)
|
isEnabled = syncEnginesStatus.containsKey(SyncEngine.Passwords)
|
||||||
isChecked = syncEnginesStatus.getOrElse(SyncEngine.Passwords) { false }
|
isChecked = syncEnginesStatus.getOrElse(SyncEngine.Passwords) { true }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
||||||
<androidx.preference.Preference
|
<androidx.preference.Preference
|
||||||
android:key="@string/pref_key_sync_now"
|
android:key="@string/pref_key_sync_now"
|
||||||
android:title="@string/preferences_sync_now" />
|
android:title="@string/preferences_sync_now" />
|
||||||
|
@ -27,7 +26,7 @@
|
||||||
android:title="@string/preferences_sync_history" />
|
android:title="@string/preferences_sync_history" />
|
||||||
|
|
||||||
<androidx.preference.CheckBoxPreference
|
<androidx.preference.CheckBoxPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="true"
|
||||||
android:key="@string/pref_key_sync_logins"
|
android:key="@string/pref_key_sync_logins"
|
||||||
android:title="@string/preferences_sync_logins" />
|
android:title="@string/preferences_sync_logins" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue