mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Fix: Settings switch changing on theme changes
This commit is contained in:
parent
f090b506fe
commit
0298875e14
@ -40,6 +40,11 @@ class SettingsFragment : ScreenFragment() {
|
||||
private var preferenceBinding: PreferenceItemBinding? = null
|
||||
private val preferences = mutableMapOf<Preferences.Key<*>, Preference<*>>()
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
preferences.forEach { (_, preference) -> preference.update() }
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
preferenceBinding = PreferenceItemBinding.inflate(layoutInflater)
|
||||
|
Loading…
x
Reference in New Issue
Block a user