From 04595db099f2c1107fc58420a1e8fa5ef207195d Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Fri, 24 Jan 2020 19:43:49 +0100 Subject: parse install referrer from gplay --- src/main/java/de/pixart/messenger/ui/StartConversationActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/de/pixart/messenger/ui/StartConversationActivity.java') diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java index a83c7ea11..c85a7e8bb 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -796,7 +796,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne if (inviteUri != null) { final Invite invite = new Invite(inviteUri); invite.account = intent.getStringExtra(EXTRA_ACCOUNT); - if (invite.isJidValid()) { + if (invite.isValidJid()) { return invite.invite(); } } @@ -991,7 +991,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne conferenceJid = Jid.of(input); } catch (final IllegalArgumentException e) { final XmppUri xmppUri = new XmppUri(input); - if (xmppUri.isJidValid() && xmppUri.isAction(XmppUri.ACTION_JOIN)) { + if (xmppUri.isValidJid() && xmppUri.isAction(XmppUri.ACTION_JOIN)) { final Editable editable = jid.getEditableText(); editable.clear(); editable.append(xmppUri.getJid().toEscapedString()); @@ -1253,7 +1253,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne } boolean invite() { - if (!isJidValid()) { + if (!isValidJid()) { Toast.makeText(StartConversationActivity.this, R.string.invalid_jid, Toast.LENGTH_SHORT).show(); return false; } -- cgit v1.2.3