comparison src/com/five_ten_sg/connectbot/HostEditorActivity.java @ 129:50e1dead04a1

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:41 -0700
parents 377357365d68
children 2a0b10fd128d
comparison
equal deleted inserted replaced
128:377357365d68 129:50e1dead04a1
359 ListPreference listPref = (ListPreference) pref; 359 ListPreference listPref = (ListPreference) pref;
360 int entryIndex = listPref.findIndexOfValue(value); 360 int entryIndex = listPref.findIndexOfValue(value);
361 if (entryIndex >= 0) value = listPref.getEntries()[entryIndex]; 361 if (entryIndex >= 0) value = listPref.getEntries()[entryIndex];
362 } 362 }
363 363
364 if ((value == null) || value.length() == 0)) value = summaries.get(key); 364 if ((value == null) || (value.length() == 0)) value = summaries.get(key);
365 pref.setSummary(value); 365 pref.setSummary(value);
366 } 366 }
367 } 367 }
368 368
369 private void initCharsetPref(final ListPreference charsetPref) { 369 private void initCharsetPref(final ListPreference charsetPref) {