From: David A. Velasco Date: Tue, 9 Jul 2013 11:36:24 +0000 (+0200) Subject: Allow the definition of a default server URL although the input field is visible X-Git-Tag: oc-android-1.4.3~5^2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/fa57455a745d4042642253bd9ba0013d0e975029 Allow the definition of a default server URL although the input field is visible --- 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 {