diff src/com/five_ten_sg/connectbot/HostEditorActivity.java @ 307:071eccdff8ea ganymed

fix java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:16:58 -0700
parents 37665a94fc39
children
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostEditorActivity.java	Wed Jul 30 12:09:51 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/HostEditorActivity.java	Wed Jul 30 14:16:58 2014 -0700
@@ -323,8 +323,11 @@
         // get all the original text summaries
         for (String key : this.pref.values.keySet()) {
             Preference pref = this.findPreference(key);
+
             if (pref == null) continue;
+
             if (pref instanceof CheckBoxPreference) continue;
+
             CharSequence value = pref.getSummary();
             summaries.put(key, value);
         }
@@ -334,8 +337,11 @@
         // for all text preferences, set hint as current database value if it is non-empty
         for (String key : this.pref.values.keySet()) {
             Preference pref = this.findPreference(key);
+
             if (pref == null) continue;
+
             if (pref instanceof CheckBoxPreference) continue;
+
             CharSequence value = this.pref.getString(key, "");
 
             if (key.equals(HostDatabase.FIELD_HOST_PUBKEYID)) {
@@ -358,10 +364,12 @@
             else if ((pref instanceof ListPreference) && (value != null)) {
                 ListPreference listPref = (ListPreference) pref;
                 int entryIndex = listPref.findIndexOfValue(value.toString());
+
                 if (entryIndex >= 0) value = listPref.getEntries()[entryIndex];
             }
 
             if ((value == null) || (value.length() == 0)) value = summaries.get(key);
+
             pref.setSummary(value);
         }
     }