mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
Fix loader in 2FA screen
This commit is contained in:
parent
238cdefa89
commit
2efba06e35
1 changed files with 4 additions and 7 deletions
|
|
@ -289,13 +289,10 @@ public class LoginActivity extends AccountAuthenticatorActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void askUserForTwoFactorAuth() {
|
public void askUserForTwoFactorAuth() {
|
||||||
if (BuildConfig.DEBUG) {
|
progressDialog.dismiss();
|
||||||
twoFactorContainer.setVisibility(VISIBLE);
|
twoFactorContainer.setVisibility(VISIBLE);
|
||||||
twoFactorEdit.setVisibility(VISIBLE);
|
twoFactorEdit.setVisibility(VISIBLE);
|
||||||
showMessageAndCancelDialog(R.string.login_failed_2fa_needed);
|
showMessageAndCancelDialog(R.string.login_failed_2fa_needed);
|
||||||
} else {
|
|
||||||
showMessageAndCancelDialog(R.string.login_failed_2fa_not_supported);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showMessageAndCancelDialog(@StringRes int resId) {
|
public void showMessageAndCancelDialog(@StringRes int resId) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue