diff --git a/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt b/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt index 06577d7c9..ddb045c9e 100644 --- a/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt @@ -76,9 +76,8 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FileChooserDialog. webServicePre?.isChecked = false } findPreference(PreferKey.themeMode)?.let { - it.setOnPreferenceChangeListener { _, newValue -> - App.INSTANCE.putPrefString(PreferKey.themeMode, newValue.toString()) - App.INSTANCE.applyDayNight() + it.setOnPreferenceChangeListener { _, _ -> + view?.post { App.INSTANCE.applyDayNight() } true } }