mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Move credential alert from skipLoginPressed to onCreate (#2928)
This commit is contained in:
parent
c97764a01d
commit
d22884f86a
1 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue