Fix transport display

This commit is contained in:
Margaux Clerc 2014-08-19 14:51:53 +02:00
parent a5f8439a93
commit 0426ac0b03

View file

@ -188,7 +188,7 @@ public class AccountPreferencesFragment extends PreferencesListFragment {
String key = newValue.toString(); String key = newValue.toString();
mPrefs.setAccountTransport(n, key); mPrefs.setAccountTransport(n, key);
preference.setSummary(mPrefs.getAccountTransportString(n)); preference.setSummary(mPrefs.getAccountTransportString(n));
preference.setDefaultValue(mPrefs.getAccountTransportKey(n));
if (mProxyPreference != null) { if (mProxyPreference != null) {
String newProxy = mPrefs.getAccountProxy(n); String newProxy = mPrefs.getAccountProxy(n);
mProxyPreference.setSummary(newProxy); mProxyPreference.setSummary(newProxy);
@ -340,6 +340,7 @@ public class AccountPreferencesFragment extends PreferencesListFragment {
pref.setSummary(mPrefs.getAccountTransportString(n)); pref.setSummary(mPrefs.getAccountTransportString(n));
pref.setDefaultValue(mPrefs.getAccountTransportKey(n)); pref.setDefaultValue(mPrefs.getAccountTransportKey(n));
pref.setValueIndex(entries.indexOf(mPrefs.getAccountTransportString(n)));
} }
private static void setListPreferenceValues(ListPreference pref, List<CharSequence> entries, List<CharSequence> values) { private static void setListPreferenceValues(ListPreference pref, List<CharSequence> entries, List<CharSequence> values) {