diff --git a/res/layout/activity_registration_2nd_device_qr.xml b/res/layout/activity_registration_2nd_device_qr.xml new file mode 100644 index 000000000..7067fbdb1 --- /dev/null +++ b/res/layout/activity_registration_2nd_device_qr.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index ba8847f00..ae574496d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -475,9 +475,11 @@ Scan to set up second device for %1$s Add as Second Device + On the first device, go to “Settings / Add Second Device“ and scan the code shown there Copy the account from the other device to this device? Abort setting up second device? This will invalidate the QR code copied to clipboard. + (experimental, version 1.36 required) Exporting account… diff --git a/src/org/thoughtcrime/securesms/WelcomeActivity.java b/src/org/thoughtcrime/securesms/WelcomeActivity.java index e0f7ceb59..2d4d18beb 100644 --- a/src/org/thoughtcrime/securesms/WelcomeActivity.java +++ b/src/org/thoughtcrime/securesms/WelcomeActivity.java @@ -450,7 +450,7 @@ public class WelcomeActivity extends BaseActionBarActivity implements DcEventCen case DcContext.DC_QR_BACKUP: new AlertDialog.Builder(this) .setTitle(R.string.multidevice_receiver_title) - .setMessage(getString(R.string.multidevice_receiver_scanning_ask) + "\n\n" + getString(R.string.multidevice_same_network_hint)) + .setMessage(R.string.multidevice_receiver_scanning_ask) .setPositiveButton(R.string.perm_continue, (dialog, which) -> startQrAccountCreation(qrRaw)) .setNegativeButton(R.string.cancel, null) .setCancelable(false) diff --git a/src/org/thoughtcrime/securesms/qr/RegistrationQrActivity.java b/src/org/thoughtcrime/securesms/qr/RegistrationQrActivity.java index 9498cf603..fec4b0b59 100644 --- a/src/org/thoughtcrime/securesms/qr/RegistrationQrActivity.java +++ b/src/org/thoughtcrime/securesms/qr/RegistrationQrActivity.java @@ -37,8 +37,9 @@ public class RegistrationQrActivity extends BaseActionBarActivity { boolean addAsAnotherDevice = getIntent().getBooleanExtra(ADD_AS_SECOND_DEVICE_EXTRA, false); if (addAsAnotherDevice) { - setContentView(R.layout.activity_registration_qr); + setContentView(R.layout.activity_registration_2nd_device_qr); getSupportActionBar().setTitle(R.string.multidevice_receiver_title); + getSupportActionBar().setSubtitle(R.string.multidevice_experimental_hint); } else { setContentView(R.layout.activity_registration_qr); getSupportActionBar().setTitle(R.string.scan_invitation_code);