diff --git a/res/layout/welcome_activity.xml b/res/layout/welcome_activity.xml
index e4bfe53e8..1b57f489f 100644
--- a/res/layout/welcome_activity.xml
+++ b/res/layout/welcome_activity.xml
@@ -15,8 +15,8 @@
@@ -53,13 +53,13 @@
+ android:text="@string/multidevice_receiver_title"/>
+ android:text="@string/scan_invitation_code"/>
+
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index f67e6ef4f..ba8847f00 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -471,7 +471,7 @@
Add Second DeviceMake sure both devices are on the same Wi-Fi or networkInstall Delta Chat 1.36 or newer on your other device (https://get.delta.chat)
- Start Delta Chat, tap “Scan QR Code” and scan the code shown here
+ Start Delta Chat, tap “Add as Second Device” and scan the code shown hereScan to set up second device for %1$sAdd as Second Device
diff --git a/src/org/thoughtcrime/securesms/WelcomeActivity.java b/src/org/thoughtcrime/securesms/WelcomeActivity.java
index 2af5dc8fa..41ac18706 100644
--- a/src/org/thoughtcrime/securesms/WelcomeActivity.java
+++ b/src/org/thoughtcrime/securesms/WelcomeActivity.java
@@ -73,10 +73,12 @@ public class WelcomeActivity extends BaseActionBarActivity implements DcEventCen
setContentView(R.layout.welcome_activity);
Button loginButton = findViewById(R.id.login_button);
+ View addAsSecondDeviceButton = findViewById(R.id.add_as_second_device_button);
View scanQrButton = findViewById(R.id.scan_qr_button);
View backupButton = findViewById(R.id.backup_button);
loginButton.setOnClickListener((view) -> startRegistrationActivity());
+ addAsSecondDeviceButton.setOnClickListener((view) -> startAddAsAnotherDeviceActivity());
scanQrButton.setOnClickListener((view) -> startRegistrationQrActivity());
backupButton.setOnClickListener((view) -> startImportBackup());
@@ -147,13 +149,16 @@ public class WelcomeActivity extends BaseActionBarActivity implements DcEventCen
manualConfigure = true;
Intent intent = new Intent(this, RegistrationActivity.class);
startActivity(intent);
- // no finish() here, the back key should take the user back from RegistrationActivity to WelcomeActivity
}
private void startRegistrationQrActivity() {
manualConfigure = false;
new IntentIntegrator(this).setCaptureActivity(RegistrationQrActivity.class).initiateScan();
- // no finish() here, the back key should take the user back from RegistrationQrActivity to WelcomeActivity
+ }
+
+ private void startAddAsAnotherDeviceActivity() {
+ manualConfigure = false;
+ new IntentIntegrator(this).setCaptureActivity(RegistrationQrActivity.class).initiateScan();
}
@SuppressLint("InlinedApi")