Fix #282
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user