put initial xmpp uri into signup intent
This commit is contained in:
parent
c1589d76b5
commit
c87e43eb92
|
@ -20,13 +20,12 @@ public class SignupUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Intent getSignUpIntent(final Activity activity, final boolean toServerChooser) {
|
public static Intent getSignUpIntent(final Activity activity, final boolean toServerChooser) {
|
||||||
Intent intent;
|
final Intent intent;
|
||||||
if (toServerChooser) {
|
if (toServerChooser) {
|
||||||
intent = new Intent(activity, PickServerActivity.class);
|
intent = new Intent(activity, PickServerActivity.class);
|
||||||
} else {
|
} else {
|
||||||
intent = new Intent(activity, WelcomeActivity.class);
|
intent = new Intent(activity, WelcomeActivity.class);
|
||||||
}
|
}
|
||||||
StartConversationActivity.addInviteUri(intent, activity.getIntent());
|
|
||||||
return intent;
|
return intent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ public class UriHandlerActivity extends AppCompatActivity {
|
||||||
if (accounts.size() == 0) {
|
if (accounts.size() == 0) {
|
||||||
if (xmppUri.isJidValid()) {
|
if (xmppUri.isJidValid()) {
|
||||||
intent = SignupUtils.getSignUpIntent(this);
|
intent = SignupUtils.getSignUpIntent(this);
|
||||||
|
intent.putExtra(StartConversationActivity.EXTRA_INVITE_URI, xmppUri.toString());
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(this, R.string.invalid_jid, Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, R.string.invalid_jid, Toast.LENGTH_SHORT).show();
|
||||||
|
|
Loading…
Reference in a new issue