mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Allow the definition of a default server URL although the input field is visible
This commit is contained in:
parent
1eed6a6812
commit
fa57455a74
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue