Minor fixes (#88)

* another attempt to fix android.view.WindowManager

* trim entered daemon
This commit is contained in:
m2049r 2017-09-26 21:41:58 +02:00 committed by GitHub
parent 10ea6d8e0c
commit 94947de9ef
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ public class LoginFragment extends Fragment {
etDaemonAddress.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus && !getActivity().isFinishing()) {
if (hasFocus && !getActivity().isFinishing() && etDaemonAddress.isLaidOut()) {
etDaemonAddress.showDropDown();
Helper.showKeyboard(getActivity());
}
@ -376,7 +376,7 @@ public class LoginFragment extends Fragment {
}
String getDaemon() {
return etDaemonAddress.getText().toString();
return etDaemonAddress.getText().toString().trim();
}
void setDaemon(NodeList nodeList) {