mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Fix bug Shibboleth server does not recognize maintenance mode
# Conflicts: # src/com/owncloud/android/authentication/AuthenticatorActivity.java
This commit is contained in:
parent
412ce69fcb
commit
33bbbb0be0
1 changed files with 4 additions and 3 deletions
|
@ -1252,7 +1252,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
}
|
||||
} else {
|
||||
if (!webViewLoginMethod) {
|
||||
updateStatusIconFailUserName();
|
||||
int statusText = result.getCode() == ResultCode.MAINTENANCE_MODE ? R.string.maintenance_mode : R.string.auth_fail_get_user_name;
|
||||
updateStatusIconFailUserName(statusText);
|
||||
showAuthStatus();
|
||||
}
|
||||
Log_OC.e(TAG, "Access to user name failed: " + result.getLogMessage());
|
||||
|
@ -1545,9 +1546,9 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
}
|
||||
|
||||
|
||||
private void updateStatusIconFailUserName() {
|
||||
private void updateStatusIconFailUserName(int statusText){
|
||||
mAuthStatusIcon = R.drawable.ic_alert;
|
||||
mAuthStatusText = R.string.auth_fail_get_user_name;
|
||||
mAuthStatusText = statusText;
|
||||
}
|
||||
|
||||
private void updateServerStatusIconNoRegularAuth() {
|
||||
|
|
Loading…
Reference in a new issue