Commit 4a9409a6 authored by Janne Koschinski's avatar Janne Koschinski

Fixes crash in client settings

parent b2b264d2
Pipeline #553 passed with stages
in 28 minutes and 58 seconds
......@@ -94,7 +94,7 @@ class ClientSettingsFragment : DaggerPreferenceFragmentCompat(),
}
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String) {
updateSummary(findPreference<ListPreference>(key))
updateSummary(findPreference(key) as? ListPreference)
val appearanceSettings = Settings.appearance(context!!)
if (this.appearanceSettings.theme != appearanceSettings.theme ||
this.appearanceSettings.language != appearanceSettings.language) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment