Allow the definition of a default server URL although the input field is visible
authorDavid A. Velasco <dvelasco@solidgear.es>
Tue, 9 Jul 2013 11:36:24 +0000 (13:36 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Tue, 9 Jul 2013 11:36:24 +0000 (13:36 +0200)
src/com/owncloud/android/authentication/AuthenticatorActivity.java

index 0578905..76041c1 100644 (file)
@@ -161,6 +161,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
         /// set view and get references to view elements\r
         setContentView(R.layout.account_setup);\r
         mHostUrlInput = (EditText) findViewById(R.id.hostUrlInput);\r
         /// 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
         mUsernameInput = (EditText) findViewById(R.id.account_username);\r
         mPasswordInput = (EditText) findViewById(R.id.account_password);\r
         mOAuthAuthEndpointText = (TextView)findViewById(R.id.oAuthEntryPoint_1);\r
@@ -190,9 +191,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
         // URL input configuration applied\r
         if (!mHostUrlInputEnabled)\r
         {\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
             findViewById(R.id.hostUrlFrame).setVisibility(View.GONE);\r
-            \r
             mRefreshButton = findViewById(R.id.centeredRefreshButton);\r
 \r
         } else {\r
             mRefreshButton = findViewById(R.id.centeredRefreshButton);\r
 \r
         } else {\r