Skip to content

Commit

Permalink
settings: recreate on theme change
Browse files Browse the repository at this point in the history
Possibly mitigates some new edge to edge issues.
  • Loading branch information
OxygenCobalt committed Jan 13, 2025
1 parent f134d3e commit e1f07de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit e1f07de

Please sign in to comment.