diff --git a/src/main/java/eu/siacs/conversations/ui/WelcomeActivity.java b/src/main/java/eu/siacs/conversations/ui/WelcomeActivity.java index ae9a8f441..4ff3772d2 100644 --- a/src/main/java/eu/siacs/conversations/ui/WelcomeActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/WelcomeActivity.java @@ -137,15 +137,15 @@ public class WelcomeActivity extends XmppActivity implements XmppConnectionServi binding.importText.setVisibility(View.VISIBLE); } binding.importDatabase.setOnClickListener(v -> startActivity(new Intent(this, ImportBackupActivity.class))); - // binding.createAccount.setOnClickListener(v -> { - // final Intent intent = new Intent(WelcomeActivity.this, MagicCreateActivity.class); - // intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); - // addInviteUri(intent); - // startActivity(intent); - // }); - // if (DISALLOW_REGISTRATION_IN_UI) { - // binding.createAccount.setVisibility(View.GONE); - // } + binding.createAccount.setOnClickListener(v -> { + final Intent intent = new Intent(WelcomeActivity.this, MagicCreateActivity.class); + intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); + addInviteUri(intent); + startActivity(intent); + }); + if (DISALLOW_REGISTRATION_IN_UI) { + binding.createAccount.setVisibility(View.GONE); + } binding.useExistingAccount.setOnClickListener(v -> { final List accounts = xmppConnectionService.getAccounts(); Intent intent = new Intent(WelcomeActivity.this, EditAccountActivity.class); diff --git a/src/main/res/layout/welcome.xml b/src/main/res/layout/welcome.xml index bf82c064d..ba18c4ddc 100644 --- a/src/main/res/layout/welcome.xml +++ b/src/main/res/layout/welcome.xml @@ -80,12 +80,21 @@ android:textColor="?attr/colorAccent" android:visibility="gone" /> +