From a7fe71c6917b3a15b10ad6a86be5438312372e67 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 25 Jun 2019 11:32:37 +0200 Subject: fix welcome screens fixes #361 --- src/main/java/de/pixart/messenger/ui/WelcomeActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/de/pixart/messenger/ui/WelcomeActivity.java') diff --git a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java index f5a4647b6..472684316 100644 --- a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java +++ b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java @@ -16,6 +16,7 @@ import java.util.List; import de.pixart.messenger.R; import de.pixart.messenger.entities.Account; +import static de.pixart.messenger.Config.DISALLOW_REGISTRATION_IN_UI; import static de.pixart.messenger.utils.PermissionUtils.allGranted; import static de.pixart.messenger.utils.PermissionUtils.writeGranted; @@ -79,6 +80,9 @@ public class WelcomeActivity extends XmppActivity { addInviteUri(intent); startActivity(intent); }); + if (DISALLOW_REGISTRATION_IN_UI) { + createAccount.setVisibility(View.GONE); + } final Button useExistingAccount = findViewById(R.id.use_existing_account); useExistingAccount.setOnClickListener(v -> { Intent intent = new Intent(WelcomeActivity.this, EditAccountActivity.class); -- cgit v1.2.3