瀏覽代碼

hide provider when changing password

tobiasKaminsky 7 年之前
父節點
當前提交
e956b9ee12
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

+ 1 - 1
src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -585,7 +585,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
 
 
         /// step 2 - set properties of UI elements (text, visibility, enabled...)
         /// step 2 - set properties of UI elements (text, visibility, enabled...)
         Button welcomeLink = (Button) findViewById(R.id.welcome_link);
         Button welcomeLink = (Button) findViewById(R.id.welcome_link);
-        welcomeLink.setVisibility(isWelcomeLinkVisible ? View.VISIBLE : View.GONE);
+        welcomeLink.setVisibility(mAction == ACTION_CREATE && isWelcomeLinkVisible ? View.VISIBLE : View.GONE);
         welcomeLink.setText(getString(R.string.auth_register));
         welcomeLink.setText(getString(R.string.auth_register));
 
 
         TextView instructionsView = (TextView) findViewById(R.id.instructions_message);
         TextView instructionsView = (TextView) findViewById(R.id.instructions_message);