Fix bug when changing display name twice

And delete the static summary
This commit is contained in:
Benoit Marty 2020-06-25 11:58:54 +02:00
parent 7b3fa501c6
commit 674fa0e5ce
2 changed files with 1 additions and 1 deletions

View file

@ -869,6 +869,7 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
if (!isAdded) return
// refresh the settings value
mDisplayNamePreference.summary = value
mDisplayNamePreference.text = value
onCommonDone(null)
}

View file

@ -15,7 +15,6 @@
<im.vector.riotx.core.preference.VectorEditTextPreference
android:key="SETTINGS_DISPLAY_NAME_PREFERENCE_KEY"
android:persistent="false"
android:summary="@string/settings_display_name"
android:title="@string/settings_display_name" />
<im.vector.riotx.core.preference.VectorPreference