Implemented analysis in DetectAuthenticationMethodOperation to find out what authenti...
[pub/Android/ownCloud.git] / src / com / owncloud / android / authentication / AuthenticatorActivity.java
index 178e164..4f6fc6c 100644 (file)
@@ -1230,7 +1230,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
             }\r
 \r
         } else {\r
             }\r
 \r
         } else {\r
-            if (mDetectAuthorizationMethod) {\r
+            if (mDetectAuthorizationMethod  && \r
+                    ( result.getCode() == ResultCode.UNAUTHORIZED /*&& result.isBasicAuthentication()*/)) {\r
                 mDetectAuthorizationMethod = false;\r
                 mOkButton.setEnabled(true);\r
                 \r
                 mDetectAuthorizationMethod = false;\r
                 mOkButton.setEnabled(true);\r
                 \r