From: David A. Velasco Date: Tue, 9 Jul 2013 08:35:04 +0000 (+0200) Subject: Avoid that refresh button appears while checking remote server X-Git-Tag: oc-android-1.4.3~5^2~1 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/1eed6a6812f41d17c44a3c0d8d87a265165fb2cb?ds=inline;hp=--cc Avoid that refresh button appears while checking remote server --- 1eed6a6812f41d17c44a3c0d8d87a265165fb2cb diff --git a/src/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/com/owncloud/android/authentication/AuthenticatorActivity.java index 18226a5e..05789059 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -432,9 +432,6 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList if (view.getId() == R.id.hostUrlInput) { if (!hasFocus) { onUrlInputFocusLost((TextView) view); - if (!mServerIsValid) { - showRefreshButton(); - } } else { hideRefreshButton(); @@ -462,6 +459,9 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList checkOcServer(); } else { mOkButton.setEnabled(mServerIsValid); + if (!mServerIsValid) { + showRefreshButton(); + } } }