From fa57455a745d4042642253bd9ba0013d0e975029 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Tue, 9 Jul 2013 13:36:24 +0200 Subject: [PATCH 1/1] Allow the definition of a default server URL although the input field is visible --- src/com/owncloud/android/authentication/AuthenticatorActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/com/owncloud/android/authentication/AuthenticatorActivity.java index 05789059..76041c18 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -161,6 +161,7 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList /// set view and get references to view elements setContentView(R.layout.account_setup); mHostUrlInput = (EditText) findViewById(R.id.hostUrlInput); + mHostUrlInput.setText(getString(R.string.server_url)); // valid although R.string.server_url is an empty string mUsernameInput = (EditText) findViewById(R.id.account_username); mPasswordInput = (EditText) findViewById(R.id.account_password); mOAuthAuthEndpointText = (TextView)findViewById(R.id.oAuthEntryPoint_1); @@ -190,9 +191,7 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList // URL input configuration applied if (!mHostUrlInputEnabled) { - mHostUrlInput.setText(getString(R.string.server_url)); findViewById(R.id.hostUrlFrame).setVisibility(View.GONE); - mRefreshButton = findViewById(R.id.centeredRefreshButton); } else { -- 2.11.0