diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-08-31 15:02:35 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-08-31 15:02:35 +0200 |
commit | 9acde9e1055ffc02378165f45bbc8cc762a700ed (patch) | |
tree | ad464bbb5b95b93c637fd8d39886d44b0a5e1df8 | |
parent | bc7c3780808d52a0b6edf036b6cbe60cf1395e44 (diff) |
put initial xmpp uri into signup intent
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/UriHandlerActivity.java | 1 | ||||
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/SignupUtils.java | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/UriHandlerActivity.java b/src/main/java/de/pixart/messenger/ui/UriHandlerActivity.java index 4a6dfa234..a7a22a10b 100644 --- a/src/main/java/de/pixart/messenger/ui/UriHandlerActivity.java +++ b/src/main/java/de/pixart/messenger/ui/UriHandlerActivity.java @@ -88,6 +88,7 @@ public class UriHandlerActivity extends AppCompatActivity { if (accounts.size() == 0) { if (xmppUri.isJidValid()) { intent = SignupUtils.getSignUpIntent(this); + intent.putExtra(StartConversationActivity.EXTRA_INVITE_URI, xmppUri.toString()); startActivity(intent); } else { Toast.makeText(this, R.string.invalid_jid, Toast.LENGTH_SHORT).show(); diff --git a/src/main/java/de/pixart/messenger/utils/SignupUtils.java b/src/main/java/de/pixart/messenger/utils/SignupUtils.java index 81959c929..1fc368fa4 100644 --- a/src/main/java/de/pixart/messenger/utils/SignupUtils.java +++ b/src/main/java/de/pixart/messenger/utils/SignupUtils.java @@ -15,8 +15,7 @@ import de.pixart.messenger.ui.WelcomeActivity; public class SignupUtils { public static Intent getSignUpIntent(final Activity activity) { - Intent intent = new Intent(activity, WelcomeActivity.class); - StartConversationActivity.addInviteUri(intent, activity.getIntent()); + final Intent intent = new Intent(activity, WelcomeActivity.class); return intent; } |