Move credential alert from skipLoginPressed to onCreate (#2928)

This commit is contained in:
neslihanturan 2019-04-26 12:53:32 +03:00 committed by Ashish Kumar
parent c97764a01d
commit d22884f86a

View file

@ -131,6 +131,12 @@ public class LoginActivity extends AccountAuthenticatorActivity {
usernameEdit.addTextChangedListener(textWatcher);
passwordEdit.addTextChangedListener(textWatcher);
twoFactorEdit.addTextChangedListener(textWatcher);
if (ConfigUtils.isBetaFlavour()) {
loginCredentials.setText(getString(R.string.login_credential));
} else {
loginCredentials.setVisibility(View.GONE);
}
}
@OnFocusChange(R.id.login_username)
@ -173,12 +179,6 @@ public class LoginActivity extends AccountAuthenticatorActivity {
})
.setNegativeButton(R.string.no, (dialog, which) -> dialog.cancel())
.show();
if (ConfigUtils.isBetaFlavour()) {
loginCredentials.setText(getString(R.string.login_credential));
} else {
loginCredentials.setVisibility(View.GONE);
}
}
@OnClick(R.id.forgot_password)