diff --git a/app/src/main/java/org/thoughtcrime/securesms/PassphraseRequiredActivity.java b/app/src/main/java/org/thoughtcrime/securesms/PassphraseRequiredActivity.java index 38d36b75cbc..8850a198a6b 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/PassphraseRequiredActivity.java +++ b/app/src/main/java/org/thoughtcrime/securesms/PassphraseRequiredActivity.java @@ -238,7 +238,8 @@ private Intent getCreateSignalPinIntent() { } private Intent getCreateProfileNameIntent() { - return getRoutedIntent(EditProfileActivity.class, getIntent()); + Intent intent = EditProfileActivity.getIntentForUserProfile(this); + return getRoutedIntent(intent, getIntent()); } private Intent getOldDeviceTransferIntent() { @@ -258,6 +259,11 @@ private Intent getChangeNumberLockIntent() { return ChangeNumberLockActivity.createIntent(this); } + private Intent getRoutedIntent(Intent destination, @Nullable Intent nextIntent) { + if (nextIntent != null) destination.putExtra("next_intent", nextIntent); + return destination; + } + private Intent getRoutedIntent(Class destination, @Nullable Intent nextIntent) { final Intent intent = new Intent(this, destination); if (nextIntent != null) intent.putExtra("next_intent", nextIntent);