aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-07-29 16:18:48 +0200
committerChristian Schneppe <christian@pix-art.de>2018-07-29 16:18:48 +0200
commit0758d938d6ff57ef5f1abe94a68377923127d0c4 (patch)
tree1825c0070199cc6d1519a0506c9340071fd87b41 /src/main
parentdc5cca9b601930796dfa208a10ebb4443047fdcf (diff)
fix rar crash in EditAccountActivity during account registration
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/EditAccountActivity.java2
1 files changed, 1 insertions, 1 deletions
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);