settings: recreate on theme change
Possibly mitigates some new edge to edge issues.
This commit is contained in:
parent
f134d3e11b
commit
e1f07def10
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class UIPreferenceFragment : BasePreferenceFragment(R.xml.preferences_ui) {
|
|||
preference.onPreferenceChangeListener =
|
||||
Preference.OnPreferenceChangeListener { _, value ->
|
||||
L.d("Theme changed, recreating")
|
||||
AppCompatDelegate.setDefaultNightMode(value as Int)
|
||||
requireActivity().recreate()
|
||||
true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue