X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/9fe217ea4a329f3de125e207f839bcbf509c0b98..fe1b334ce6b23d495f10ba0240ab3892793fa0bc:/src/com/owncloud/android/authentication/AuthenticatorActivity.java 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(); }