aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/org/connectbot/HostEditorFragment.java
diff options
context:
space:
mode:
authorKyle Horimoto <khorimoto@gmail.com>2015-10-08 15:09:06 -0700
committerKyle Horimoto <khorimoto@gmail.com>2015-10-08 15:09:06 -0700
commitb4959c33480dd2f85323f26cf6db474a79fd6864 (patch)
tree12e39cb485594e84c6e4857bb428bbb739c69b04 /app/src/main/java/org/connectbot/HostEditorFragment.java
parent908e389961eb31d8d53f8d0dadbfeda2556d4219 (diff)
downloadconnectbot-b4959c33480dd2f85323f26cf6db474a79fd6864.tar.gz
connectbot-b4959c33480dd2f85323f26cf6db474a79fd6864.tar.bz2
connectbot-b4959c33480dd2f85323f26cf6db474a79fd6864.zip
Cleaned up code.
Diffstat (limited to 'app/src/main/java/org/connectbot/HostEditorFragment.java')
-rw-r--r--app/src/main/java/org/connectbot/HostEditorFragment.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/org/connectbot/HostEditorFragment.java b/app/src/main/java/org/connectbot/HostEditorFragment.java
index d2ff8b9..56022d7 100644
--- a/app/src/main/java/org/connectbot/HostEditorFragment.java
+++ b/app/src/main/java/org/connectbot/HostEditorFragment.java
@@ -553,6 +553,12 @@ public class HostEditorFragment extends Fragment {
handleHostChange();
}
+ /**
+ * Handles a change in the host caused by the user adjusting the values of one of the widgets
+ * in this fragment. If the change has resulted in a valid host, the new value is sent back
+ * to the listener; however, if the change ha resulted in an invalid host, the listener is
+ * notified.
+ */
private void handleHostChange() {
String protocol = (String) mTransportSpinner.getSelectedItem();
String quickConnectString = mQuickConnectField.getText().toString();