Explorar o código

Avoid that refresh button appears while checking remote server

David A. Velasco %!s(int64=12) %!d(string=hai) anos
pai
achega
1eed6a6812

+ 3 - 3
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();
+            }
         }
     }