浏览代码

Allow the definition of a default server URL although the input field is visible

David A. Velasco 11 年之前
父节点
当前提交
fa57455a74
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/com/owncloud/android/authentication/AuthenticatorActivity.java

+ 1 - 2
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 {