Mercurial > 510Connectbot
changeset 364:fe0fbcf55ed9
allow eula agreement to be set from deployment.connections
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 04 Aug 2014 09:29:54 -0700 |
parents | 5b0636e6a910 |
children | 145ec135804f |
files | src/com/five_ten_sg/connectbot/HostListActivity.java |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostListActivity.java Mon Aug 04 08:58:19 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/HostListActivity.java Mon Aug 04 09:29:54 2014 -0700 @@ -432,7 +432,7 @@ types.put("memkeys", "boolean"); types.put("connPersist", "boolean"); types.put("emulation", "string"); - types.put("scrollback", "integer"); + types.put("scrollback", "string"); types.put("rotation", "string"); types.put("shiftfkeys", "boolean"); types.put("ctrlfkeys", "boolean"); @@ -466,8 +466,17 @@ for (String key : values.keySet()) { if (types.containsKey(key)) { + String t = types.get(key); String sv = values.getAsString(key); - editor.putString(key, sv); + if (t.equals("float")) { + editor.putFloat(key, Float.parseFloat(sv)); + } + else if (t.equals("boolean")) { + editor.putBoolean(key, Boolean.parseBoolean(sv)); + } + else if (t.equals("string")) { + editor.putString(key, sv); + } } }