How can I modify the summary of a ListPreference to the new \"Entry\" string selected by the user (not the entry value)
I suppouse its with setOnPreferenceChangeList
Simplest way in Kotlin
findPreference(getString(R.string.pref_some_key)).apply { summary = entry setOnPreferenceChangeListener { _, newValue -> summary = entries[entryValues.indexOf(newValue)] return@setOnPreferenceChangeListener true } }