From: David A. Velasco Date: Thu, 16 May 2013 10:48:13 +0000 (+0200) Subject: Fixed problem after erasing URL in login view and changing to next field X-Git-Tag: oc-android-1.4.3~24^2~9 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/fe1b334ce6b23d495f10ba0240ab3892793fa0bc?hp=--cc Fixed problem after erasing URL in login view and changing to next field --- fe1b334ce6b23d495f10ba0240ab3892793fa0bc diff --git a/src/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/com/owncloud/android/authentication/AuthenticatorActivity.java index 1487aee8..07c9d537 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -414,15 +414,15 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity private void checkOcServer() { String uri = mHostUrlInput.getText().toString().trim(); + mServerCheckedAndValid = false; + mOkButton.setEnabled(false); + mDiscoveredVersion = null; if (uri.length() != 0) { - mServerCheckedAndValid = false; - mOkButton.setEnabled(false); mServerStatusText = R.string.auth_testing_connection; mServerStatusIcon = R.drawable.progress_small; showServerStatus(); mOcServerChkOperation = new OwnCloudServerCheckOperation(uri, this); WebdavClient client = OwnCloudClientUtils.createOwnCloudClient(Uri.parse(uri), this); - mDiscoveredVersion = null; mOperationThread = mOcServerChkOperation.execute(client, this, mHandler); } else { mHostUrlInput.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0); @@ -1028,7 +1028,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity * @param view Refresh 'button' */ public void onRefreshClick(View view) { - onFocusChange(mHostUrlInput, false); + checkOcServer(); }