1
0
Fork 0

For #6737 - Set Logins checkbox default to true

master
ekager 2020-02-18 10:59:28 -08:00 committed by Emily Kager
parent e8913474a0
commit bb85de5dca
2 changed files with 3 additions and 4 deletions

View File

@ -256,7 +256,7 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
val loginsNameKey = getPreferenceKey(R.string.pref_key_sync_logins)
findPreference<CheckBoxPreference>(loginsNameKey)?.apply {
isEnabled = syncEnginesStatus.containsKey(SyncEngine.Passwords)
isChecked = syncEnginesStatus.getOrElse(SyncEngine.Passwords) { false }
isChecked = syncEnginesStatus.getOrElse(SyncEngine.Passwords) { true }
}
}

View File

@ -2,8 +2,7 @@
<!-- 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
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<androidx.preference.Preference
android:key="@string/pref_key_sync_now"
android:title="@string/preferences_sync_now" />
@ -27,7 +26,7 @@
android:title="@string/preferences_sync_history" />
<androidx.preference.CheckBoxPreference
android:defaultValue="false"
android:defaultValue="true"
android:key="@string/pref_key_sync_logins"
android:title="@string/preferences_sync_logins" />