From 4ae57b5bea5c973717f32975219ec6180293a660 Mon Sep 17 00:00:00 2001 From: masensio Date: Thu, 20 Mar 2014 16:51:00 +0100 Subject: [PATCH] Changes from comments in PR#443 --- owncloud-android-library | 2 +- src/com/owncloud/android/authentication/AuthenticatorActivity.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/owncloud-android-library b/owncloud-android-library index 30acd487..f63da07a 160000 --- a/owncloud-android-library +++ b/owncloud-android-library @@ -1 +1 @@ -Subproject commit 30acd4875dda3fd0bec83daaad522f3d5a02ead6 +Subproject commit f63da07a3e3c25c94345ca0761ca0bbf50ea9090 diff --git a/src/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/com/owncloud/android/authentication/AuthenticatorActivity.java index 178e1646..a8293c34 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -1230,7 +1230,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity } } else { - if (mDetectAuthorizationMethod) { + if (mDetectAuthorizationMethod && + ( result.getCode() == ResultCode.UNAUTHORIZED && result.isBasicAuthentication())) { mDetectAuthorizationMethod = false; mOkButton.setEnabled(true); -- 2.11.0