Mercurial > 510Connectbot
changeset 118:9c0aaf27ce28
host editor database values override summary text
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 18 Jun 2014 16:53:58 -0700 |
parents | 91f80da38f96 |
children | 6969d6cebcd7 |
files | src/com/five_ten_sg/connectbot/HostEditorActivity.java |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostEditorActivity.java Wed Jun 18 16:44:12 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/HostEditorActivity.java Wed Jun 18 16:53:58 2014 -0700 @@ -334,8 +334,12 @@ } private void updateSummaries() { - // for all text preferences, set hint as current database value if not empty + // for all text preferences, set hint as current database value for (String key : this.pref.values.keySet()) { + if (key.equals(HostDatabase.FIELD_HOST_POSTLOGIN)) continue; + if (key.equals(HostDatabase.FIELD_HOST_EMULATION)) continue; + if (key.equals(HostDatabase.FIELD_HOST_MONITOR)) continue; + Preference pref = this.findPreference(key); if (pref == null) continue; @@ -369,8 +373,7 @@ value = listPref.getEntries()[entryIndex]; } - String v = (String)value; - if ((v != null) && (v.length() > 0)) pref.setSummary(value); + pref.setSummary(value); } }