diff options
author | Jeremy Klein <jklein24@gmail.com> | 2015-10-22 10:42:43 -0700 |
---|---|---|
committer | Jeremy Klein <jklein24@gmail.com> | 2015-10-22 10:42:43 -0700 |
commit | 0eeb8794fab1358389b0ff98d15761abe23ced9f (patch) | |
tree | 42acb30e08ab5d0419d5a1a7c64e27c0d4015a92 | |
parent | 5a333f12c354205282898f3a8db0c517d1356f33 (diff) | |
parent | 0ba492825d85f5d41acdd00fdbbcd6e8f1d8dfff (diff) | |
download | connectbot-0eeb8794fab1358389b0ff98d15761abe23ced9f.tar.gz connectbot-0eeb8794fab1358389b0ff98d15761abe23ced9f.tar.bz2 connectbot-0eeb8794fab1358389b0ff98d15761abe23ced9f.zip |
Merge pull request #318 from johnheroy/fontsizeslider
Clear focus on font size EditText when font size SeekBar progress changed
-rw-r--r-- | app/src/main/java/org/connectbot/HostEditorFragment.java | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_host_editor.xml | 2 |
2 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 fe6f838..392e870 100644 --- a/app/src/main/java/org/connectbot/HostEditorFragment.java +++ b/app/src/main/java/org/connectbot/HostEditorFragment.java @@ -204,6 +204,8 @@ 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); String oldQuickConnect = savedInstanceState == null ? @@ -318,6 +320,8 @@ 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(); } @Override diff --git a/app/src/main/res/layout/fragment_host_editor.xml b/app/src/main/res/layout/fragment_host_editor.xml index e4a2094..faa22bc 100644 --- a/app/src/main/res/layout/fragment_host_editor.xml +++ b/app/src/main/res/layout/fragment_host_editor.xml @@ -25,6 +25,8 @@ > <LinearLayout + android:focusable="true" + android:focusableInTouchMode="true" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" |