OC-1075: message 'This authenticated method is not supported', should be shown when need it.

This commit is contained in:
masensio 2013-08-27 11:38:03 +02:00
parent 0a7d508f92
commit e7d9114859
2 changed files with 8 additions and 3 deletions

View file

@ -316,7 +316,11 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {}
public void onTextChanged(CharSequence s, int start, int before, int count) {
mAuthStatusIcon = 0;
mAuthStatusText = 0;
showAuthStatus();
}
});
mPasswordInput.setOnFocusChangeListener(this);

View file

@ -324,8 +324,9 @@ public class RemoteOperationResult implements Serializable {
}
public boolean isIdPRedirection() {
return (mRedirectedLocation.toUpperCase().contains("SAML") ||
mRedirectedLocation.toLowerCase().contains("wayf"));
return (mRedirectedLocation != null &&
(mRedirectedLocation.toUpperCase().contains("SAML") ||
mRedirectedLocation.toLowerCase().contains("wayf")));
}
}