Added skeleton of new operation to detect authentication method in the server side
[pub/Android/ownCloud.git] / src / com / owncloud / android / authentication / AuthenticatorActivity.java
index 178e164..a8293c3 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