Commit bcb09240 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Set auto focus on 2FA input text field

parent 0aff7345
...@@ -89,11 +89,11 @@ public class TwoStepAuthFragment extends AbstractServerConfigFragment ...@@ -89,11 +89,11 @@ public class TwoStepAuthFragment extends AbstractServerConfigFragment
protected void onSetupView() { protected void onSetupView() {
waitingView = rootView.findViewById(R.id.waiting); waitingView = rootView.findViewById(R.id.waiting);
final TextView twoStepCodeTextView = (TextView) rootView.findViewById(R.id.two_step_code); final TextView twoStepCodeTextView = rootView.findViewById(R.id.two_step_code);
twoStepCodeTextView.requestFocus();
submitButton = rootView.findViewById(R.id.btn_two_step_login); submitButton = rootView.findViewById(R.id.btn_two_step_login);
submitButton.setOnClickListener(view -> { submitButton.setOnClickListener(v -> presenter.onCode(twoStepCodeTextView.getText().toString()));
presenter.onCode(twoStepCodeTextView.getText().toString());
});
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment