/// set view and get references to view elements\r
setContentView(R.layout.account_setup);\r
mHostUrlInput = (EditText) findViewById(R.id.hostUrlInput);\r
+ mHostUrlInput.setText(getString(R.string.server_url)); // valid although R.string.server_url is an empty string\r
mUsernameInput = (EditText) findViewById(R.id.account_username);\r
mPasswordInput = (EditText) findViewById(R.id.account_password);\r
mOAuthAuthEndpointText = (TextView)findViewById(R.id.oAuthEntryPoint_1);\r
// URL input configuration applied\r
if (!mHostUrlInputEnabled)\r
{\r
- mHostUrlInput.setText(getString(R.string.server_url));\r
findViewById(R.id.hostUrlFrame).setVisibility(View.GONE);\r
- \r
mRefreshButton = findViewById(R.id.centeredRefreshButton);\r
\r
} else {\r
if (view.getId() == R.id.hostUrlInput) { \r
if (!hasFocus) {\r
onUrlInputFocusLost((TextView) view);\r
- if (!mServerIsValid) {\r
- showRefreshButton();\r
- }\r
}\r
else {\r
hideRefreshButton();\r
checkOcServer();\r
} else {\r
mOkButton.setEnabled(mServerIsValid);\r
+ if (!mServerIsValid) {\r
+ showRefreshButton();\r
+ }\r
}\r
}\r
\r