changeset 131:adf9ca45675b

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:57:31 -0700
parents 2a0b10fd128d
children 265a4733edcb
files src/com/five_ten_sg/connectbot/HostEditorActivity.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostEditorActivity.java	Thu Jun 19 09:56:25 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/HostEditorActivity.java	Thu Jun 19 09:57:31 2014 -0700
@@ -357,7 +357,7 @@
             }
             else if (pref instanceof ListPreference) {
                 ListPreference listPref = (ListPreference) pref;
-                int entryIndex = listPref.findIndexOfValue(value);
+                int entryIndex = listPref.findIndexOfValue(value.toString());
                 if (entryIndex >= 0) value = listPref.getEntries()[entryIndex];
             }