aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/WelcomeActivity.java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/WelcomeActivity.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java
index cd2be0161..0e84d1d64 100644
--- a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java
@@ -43,7 +43,7 @@ import de.pixart.messenger.utils.XmppUri;
public class WelcomeActivity extends XmppActivity {
- public static final String EXTRA_INVITEE = "eu.siacs.conversations.invitee";
+ public static final String EXTRA_INVITE_URI = "eu.siacs.conversations.invite_uri";
boolean importSuccessful = false;
@Override
@@ -110,7 +110,7 @@ public class WelcomeActivity extends XmppActivity {
createAccount.setOnClickListener(v -> {
final Intent intent = new Intent(WelcomeActivity.this, MagicCreateActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
- addInvitee(intent);
+ addInviteUri(intent);
startActivity(intent);
});
final Button useOwnProvider = findViewById(R.id.use_existing_account);
@@ -123,7 +123,7 @@ public class WelcomeActivity extends XmppActivity {
} else if (accounts.size() >= 1) {
intent = new Intent(WelcomeActivity.this, ManageAccountActivity.class);
}
- addInvitee(intent);
+ addInviteUri(intent);
startActivity(intent);
});
@@ -320,19 +320,19 @@ public class WelcomeActivity extends XmppActivity {
}
}
- public void addInvitee(Intent intent) {
- addInvitee(intent, getIntent());
+ public void addInviteUri(Intent intent) {
+ addInviteUri(intent, getIntent());
}
- public static void addInvitee(Intent intent, XmppUri uri) {
+ public static void addInviteUri(Intent intent, XmppUri uri) {
if (uri.isJidValid()) {
- intent.putExtra(EXTRA_INVITEE, uri.getJid().toString());
+ intent.putExtra(EXTRA_INVITE_URI, uri.toString());
}
}
- public static void addInvitee(Intent to, Intent from) {
- if (from != null && from.hasExtra(EXTRA_INVITEE)) {
- to.putExtra(EXTRA_INVITEE, from.getStringExtra(EXTRA_INVITEE));
+ public static void addInviteUri(Intent to, Intent from) {
+ if (from != null && from.hasExtra(EXTRA_INVITE_URI)) {
+ to.putExtra(EXTRA_INVITE_URI, from.getStringExtra(EXTRA_INVITE_URI));
}
}