OC-1075: message 'This authenticated method is not supported', should be shown when...
authormasensio <masensio@solidgear.es>
Tue, 27 Aug 2013 09:38:03 +0000 (11:38 +0200)
committermasensio <masensio@solidgear.es>
Tue, 27 Aug 2013 09:38:03 +0000 (11:38 +0200)
src/com/owncloud/android/authentication/AuthenticatorActivity.java
src/com/owncloud/android/operations/RemoteOperationResult.java

index 88738bb..f6b183c 100644 (file)
@@ -316,7 +316,11 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
             public void beforeTextChanged(CharSequence s, int start, int count, int after) {}\r
 \r
             @Override\r
             public void beforeTextChanged(CharSequence s, int start, int count, int after) {}\r
 \r
             @Override\r
-            public void onTextChanged(CharSequence s, int start, int before, int count) {}\r
+            public void onTextChanged(CharSequence s, int start, int before, int count) {\r
+                    mAuthStatusIcon = 0;\r
+                    mAuthStatusText = 0;\r
+                    showAuthStatus();\r
+            }\r
 \r
         });\r
         mPasswordInput.setOnFocusChangeListener(this);\r
 \r
         });\r
         mPasswordInput.setOnFocusChangeListener(this);\r
index f840f9a..1679bf7 100644 (file)
@@ -324,8 +324,9 @@ public class RemoteOperationResult implements Serializable {
     }
     
     public boolean isIdPRedirection() {
     }
     
     public boolean isIdPRedirection() {
-        return (mRedirectedLocation.toUpperCase().contains("SAML") || 
-                mRedirectedLocation.toLowerCase().contains("wayf"));
+        return (mRedirectedLocation != null &&
+                (mRedirectedLocation.toUpperCase().contains("SAML") || 
+                mRedirectedLocation.toLowerCase().contains("wayf")));
     }
 
 }
     }
 
 }