Change the summary of a ListPreference with the new value (Android)
<p>How can I modify the summary of a ListPreference to the new "Entry" string selected by the user (not the entry value)</p>

<p>I suppouse its with setOnPreferenceChangeListener() but in</p>

<pre><code>new OnPreferenceChangeListener() {

        @Override
        public boolean onPreferenceChange(Preference preference, Object newValue) {
            return true;
        }
    }
</code></pre>

<p>using ((ListPreference)preference).getEntry() I get the old value (because it isn't changed yet) and newValue.toString() returns the  entry value (not the entry text displayed to the user)</p>

<p>How can I do it? Thanks in advance</p>
