This commit is contained in:
tarsin committed 2022-09-17 15:11:34 +08:00
1 parent 0906b17ed1
commit 5838ea3e3f
1 file changed
+1 -1
@@ -55,7 +55,7 @@ class EhFragment : BasePreferenceFragment() {
override fun onPreferenceChange(preference: Preference, newValue: Any): Boolean {
val key = preference.key
if (Settings.KEY_THEME == key) {
AppCompatDelegate.setDefaultNightMode(newValue as Int)
AppCompatDelegate.setDefaultNightMode((newValue as String).toInt())
requireActivity().recreate()
return true
} else if (Settings.KEY_GALLERY_SITE == key) {