Skip to content

Commit d22884f

Browse files
neslihanturanashishkumar468
authored andcommitted
Move credential alert from skipLoginPressed to onCreate (commons-app#2928)
1 parent c97764a commit d22884f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ public void onCreate(Bundle savedInstanceState) {
131131
usernameEdit.addTextChangedListener(textWatcher);
132132
passwordEdit.addTextChangedListener(textWatcher);
133133
twoFactorEdit.addTextChangedListener(textWatcher);
134+
135+
if (ConfigUtils.isBetaFlavour()) {
136+
loginCredentials.setText(getString(R.string.login_credential));
137+
} else {
138+
loginCredentials.setVisibility(View.GONE);
139+
}
134140
}
135141

136142
@OnFocusChange(R.id.login_username)
@@ -173,12 +179,6 @@ void skipLogin() {
173179
})
174180
.setNegativeButton(R.string.no, (dialog, which) -> dialog.cancel())
175181
.show();
176-
177-
if (ConfigUtils.isBetaFlavour()) {
178-
loginCredentials.setText(getString(R.string.login_credential));
179-
} else {
180-
loginCredentials.setVisibility(View.GONE);
181-
}
182182
}
183183

184184
@OnClick(R.id.forgot_password)

0 commit comments

Comments
 (0)