changeset 195:e98ac723383f

read deployment.connections on startup for global preferences also
author Carl Byington <carl@five-ten-sg.com>
date Wed, 02 Jul 2014 18:12:26 -0700
parents 1b3f25b6117f
children 66570e219430
files src/com/five_ten_sg/connectbot/HostListActivity.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostListActivity.java	Wed Jul 02 18:09:55 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/HostListActivity.java	Wed Jul 02 18:12:26 2014 -0700
@@ -28,6 +28,7 @@
 import java.io.BufferedReader;
 import java.io.FileReader;
 import java.io.File;
+import java.util.HashMap;
 import java.util.List;
 
 import android.app.Activity;
@@ -457,14 +458,14 @@
                     types.put("debug_keycodes", "boolean");
                     for (String key : values.keySet()) {
                         if (types.containsKey(key)) {
-                            Char stype = types.get(key)[0];
+                            char stype = types.get(key)[0];
                             switch (stype) {
                                 case 'b':
                                     editor.putBoolean(key, values.getAsBoolean(key));
                                     break;
 
                                 case 'i':
-                                    editor.putInteger(key, values.getAsInteger(key));
+                                    editor.putInt(key, values.getAsInteger(key));
                                     break;
 
                                 case 'f':