Fix default preference display

This commit is contained in:
Mike Barnes 2020-12-17 23:21:59 +11:00
parent e52b54017e
commit cbb8c914be

View file

@ -42,7 +42,7 @@ class PreferencesFragment : PreferenceFragmentCompat(), Injectable {
makePreferenceScreen {
preferenceCategory(R.string.pref_title_appearance_settings) {
listPreference {
setDefaultValue(AppTheme.NIGHT.value)
setDefaultValue(AppTheme.AUTO_SYSTEM.value)
setEntries(R.array.app_theme_names)
entryValues = AppTheme.stringValues()
key = PrefKeys.APP_THEME