kopia lustrzana https://github.com/ryukoposting/Signal-Android
Utilize proper intent creation when launching profile creator from PassphraseRequiredActivity.
rodzic
9c266e7995
commit
796e98be10
|
@ -238,7 +238,8 @@ public abstract class PassphraseRequiredActivity extends BaseActivity implements
|
||||||
}
|
}
|
||||||
|
|
||||||
private Intent getCreateProfileNameIntent() {
|
private Intent getCreateProfileNameIntent() {
|
||||||
return getRoutedIntent(EditProfileActivity.class, getIntent());
|
Intent intent = EditProfileActivity.getIntentForUserProfile(this);
|
||||||
|
return getRoutedIntent(intent, getIntent());
|
||||||
}
|
}
|
||||||
|
|
||||||
private Intent getOldDeviceTransferIntent() {
|
private Intent getOldDeviceTransferIntent() {
|
||||||
|
@ -258,6 +259,11 @@ public abstract class PassphraseRequiredActivity extends BaseActivity implements
|
||||||
return ChangeNumberLockActivity.createIntent(this);
|
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) {
|
private Intent getRoutedIntent(Class<?> destination, @Nullable Intent nextIntent) {
|
||||||
final Intent intent = new Intent(this, destination);
|
final Intent intent = new Intent(this, destination);
|
||||||
if (nextIntent != null) intent.putExtra("next_intent", nextIntent);
|
if (nextIntent != null) intent.putExtra("next_intent", nextIntent);
|
||||||
|
|
Ładowanie…
Reference in New Issue