mUsernameView = (EditText) findViewById(R.id.username);
final Intent intent = getIntent();
if (intent != null) {
mExistingAccountName = intent.getStringExtra(ARG_USERNAME);
}
<BUG>mPasswordView = (EditText) findViewById(R.id.password);
mPasswordView.setOnEditorActionListener(new AppCompatTextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(final TextView textView, final int id, final KeyEvent keyEvent) {</BUG>
if (id == R.id.login || id == EditorInfo.IME_NULL) {

mUsernameView = (EditText) findViewById(R.id.username);
final Intent intent = getIntent();
if (intent != null) {
mExistingAccountName = intent.getStringExtra(ARG_USERNAME);
}
mPasswordView = (EditText) findViewById(R.id.password);
mPasswordView.setOnEditorActionListener((textView, id, keyEvent) -> {
if (id == R.id.login || id == EditorInfo.IME_NULL) {
