From 0758d938d6ff57ef5f1abe94a68377923127d0c4 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 29 Jul 2018 16:18:48 +0200 Subject: fix rar crash in EditAccountActivity during account registration --- src/main/java/de/pixart/messenger/ui/EditAccountActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de') diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java index 9333b13b4..e33de0eb4 100644 --- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java +++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java @@ -431,7 +431,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat } protected void updateInfoButtons() { - if (this.binding.accountRegisterNew.isChecked() && this.binding.accountJid.getText().length() > 0) { + if (this.binding.accountRegisterNew.isChecked() && this.binding.accountJid.getText().length() > 0 && !this.binding.accountJid.getText().toString().contains("@")) { if (!mUsernameMode && Jid.of(this.binding.accountJid.getText()).getDomain().toLowerCase().equals("pix-art.de")) { this.binding.showPrivacyPolicy.setVisibility(View.VISIBLE); this.binding.showTermsOfUse.setVisibility(View.VISIBLE); -- cgit v1.2.3