pull/32/head
gedoor 6 years ago
parent 95a3ded538
commit 5b8ad639d8
  1. 2
      app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt

@ -85,7 +85,7 @@ class ThemeConfigFragment : PreferenceFragmentCompat(), SharedPreferences.OnShar
private fun upTheme(isNightTheme: Boolean) { private fun upTheme(isNightTheme: Boolean) {
if (App.INSTANCE.getPrefBoolean("isNightTheme", false) == isNightTheme) { if (App.INSTANCE.getPrefBoolean("isNightTheme", false) == isNightTheme) {
App.INSTANCE.upThemeStore() App.INSTANCE.upThemeStore()
LiveEventBus.get().with("recreate").post("recreate") LiveEventBus.get().with("recreate").post("")
Handler().postDelayed({activity?.recreate()}, 300) Handler().postDelayed({activity?.recreate()}, 300)
} }
} }

Loading…
Cancel
Save