diff --git a/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt index 8ac64d67a..14e7d1f5a 100644 --- a/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt @@ -36,6 +36,10 @@ class ThemeConfigFragment : PreferenceFragmentCompat(), SharedPreferences.OnShar override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) { sharedPreferences ?: return when (key) { + "transparentStatusBar" -> { + LiveEventBus.get().with(Bus.recreate).post("") + Handler().postDelayed({ activity?.recreate() }, 100) + } "colorPrimary", "colorAccent", "colorBackground" -> if (backgroundIsDark(sharedPreferences)) { activity?.let {