|
|
@ -76,9 +76,8 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FileChooserDialog. |
|
|
|
webServicePre?.isChecked = false |
|
|
|
webServicePre?.isChecked = false |
|
|
|
} |
|
|
|
} |
|
|
|
findPreference<NameListPreference>(PreferKey.themeMode)?.let { |
|
|
|
findPreference<NameListPreference>(PreferKey.themeMode)?.let { |
|
|
|
it.setOnPreferenceChangeListener { _, newValue -> |
|
|
|
it.setOnPreferenceChangeListener { _, _ -> |
|
|
|
App.INSTANCE.putPrefString(PreferKey.themeMode, newValue.toString()) |
|
|
|
view?.post { App.INSTANCE.applyDayNight() } |
|
|
|
App.INSTANCE.applyDayNight() |
|
|
|
|
|
|
|
true |
|
|
|
true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|