Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/HostEditorActivity.java @ 117:91f80da38f96
host editor database values override summary text only if non-empty
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 18 Jun 2014 16:44:12 -0700 |
parents | 5eda34fb607f |
children | 9c0aaf27ce28 |
comparison
equal
deleted
inserted
replaced
116:524f9d41e046 | 117:91f80da38f96 |
---|---|
368 if (entryIndex >= 0) | 368 if (entryIndex >= 0) |
369 value = listPref.getEntries()[entryIndex]; | 369 value = listPref.getEntries()[entryIndex]; |
370 } | 370 } |
371 | 371 |
372 String v = (String)value; | 372 String v = (String)value; |
373 if (v.length() == 0) pref.setSummary(value); | 373 if ((v != null) && (v.length() > 0)) pref.setSummary(value); |
374 } | 374 } |
375 } | 375 } |
376 | 376 |
377 private void initCharsetPref(final ListPreference charsetPref) { | 377 private void initCharsetPref(final ListPreference charsetPref) { |
378 charsetPref.setEntryValues(CharsetHolder.getCharsetIds()); | 378 charsetPref.setEntryValues(CharsetHolder.getCharsetIds()); |