diff options
author | John Heroy <johnheroy@gmail.com> | 2015-10-21 17:05:16 -0700 |
---|---|---|
committer | John Heroy <johnheroy@gmail.com> | 2015-10-21 17:05:16 -0700 |
commit | 9d4f9e73ed7053c5477def1c5e1496b71ffe8cee (patch) | |
tree | cfb5412ff74820956f7e122515119f34a7ff4a64 /app | |
parent | 4b291771086c656e733fdff9b792eda38a95bfdd (diff) | |
download | connectbot-9d4f9e73ed7053c5477def1c5e1496b71ffe8cee.tar.gz connectbot-9d4f9e73ed7053c5477def1c5e1496b71ffe8cee.tar.bz2 connectbot-9d4f9e73ed7053c5477def1c5e1496b71ffe8cee.zip |
Add comments explaining requestFocus and clearFocus method calls
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/org/connectbot/HostEditorFragment.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/org/connectbot/HostEditorFragment.java b/app/src/main/java/org/connectbot/HostEditorFragment.java index 2ef40b3..392e870 100644 --- a/app/src/main/java/org/connectbot/HostEditorFragment.java +++ b/app/src/main/java/org/connectbot/HostEditorFragment.java @@ -204,6 +204,7 @@ public class HostEditorFragment extends Fragment { mQuickConnectContainer = (TextInputLayout) view.findViewById(R.id.quickconnect_field_container); + /* Request focus on creation because elements in this fragment do not autofocus. */ mQuickConnectContainer.requestFocus(); mQuickConnectField = (EditText) view.findViewById(R.id.quickconnect_field); @@ -319,6 +320,7 @@ public class HostEditorFragment extends Fragment { @Override public void onStartTrackingTouch(SeekBar seekBar) { + /* Clear focus on font size EditText so its text value can update. */ mFontSizeText.clearFocus(); } |