comparison src/com/five_ten_sg/connectbot/HostEditorActivity.java @ 128:377357365d68

host editor database values override summary text only if non-empty
author Carl Byington <carl@five-ten-sg.com>
date Thu, 19 Jun 2014 09:42:09 -0700
parents 69db8af9508d
children 50e1dead04a1
comparison
equal deleted inserted replaced
127:69db8af9508d 128:377357365d68
325 Preference pref = this.findPreference(key); 325 Preference pref = this.findPreference(key);
326 if (pref == null) continue; 326 if (pref == null) continue;
327 if (pref instanceof CheckBoxPreference) continue; 327 if (pref instanceof CheckBoxPreference) continue;
328 CharSequence value = this.pref.getSummary(key, ""); 328 CharSequence value = this.pref.getSummary(key, "");
329 summaries.put(key, value); 329 summaries.put(key, value);
330 }
330 } 331 }
331 332
332 private void updateSummaries() { 333 private void updateSummaries() {
333 // for all text preferences, set hint as current database value if it is non-empty 334 // for all text preferences, set hint as current database value if it is non-empty
334 for (String key : this.pref.values.keySet()) { 335 for (String key : this.pref.values.keySet()) {