}\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