소스 검색

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

masensio 11 년 전
부모
커밋
e7d9114859

+ 5 - 1
src/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -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);

+ 3 - 2
src/com/owncloud/android/operations/RemoteOperationResult.java

@@ -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")));
     }
 
 }