fix rar crash in EditAccountActivity during account registration

This commit is contained in:
Christian Schneppe 2018-07-29 16:18:48 +02:00
parent dc5cca9b60
commit 0758d938d6

View file

@ -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);