aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-08-23 20:21:58 +0200
committerChristian Schneppe <christian@pix-art.de>2018-08-23 20:21:58 +0200
commit41d57aca9a7a2a08b242ae35d3e2b21ae5f335a6 (patch)
treeb1b31df26f99de43db4671213c9a49be4197637d /src/main
parent0c9c59b444b5ef0c7d8b61021c8e5bf802b59228 (diff)
convert jid to string
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/EditAccountActivity.java3
1 files changed, 2 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 e33de0eb4..9d38923da 100644
--- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
@@ -432,7 +432,8 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
protected void updateInfoButtons() {
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")) {
+ final String jid = this.binding.accountJid.getText().toString();
+ if (!mUsernameMode && Jid.of(jid).getDomain().toLowerCase().equals("pix-art.de")) {
this.binding.showPrivacyPolicy.setVisibility(View.VISIBLE);
this.binding.showTermsOfUse.setVisibility(View.VISIBLE);
}