Browse Source

also hide test server button (arrow) when changing password

tobiasKaminsky 7 years ago
parent
commit
b09be26992

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

@@ -588,6 +588,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
         welcomeLink.setVisibility(mAction == ACTION_CREATE && 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));
 
 
+        mTestServerButton.setVisibility(mAction == ACTION_CREATE ? View.VISIBLE : View.GONE);
+
         TextView instructionsView = (TextView) findViewById(R.id.instructions_message);
         TextView instructionsView = (TextView) findViewById(R.id.instructions_message);
         if (instructionsMessageText != null) {
         if (instructionsMessageText != null) {
             instructionsView.setVisibility(View.VISIBLE);
             instructionsView.setVisibility(View.VISIBLE);