Don't offer backup restore on reregistration

Fixes #7502
This commit is contained in:
Moxie Marlinspike 2018-03-11 17:12:42 -07:00
parent cc288d1e43
commit 43d7e99a50
3 changed files with 7 additions and 3 deletions

View File

@ -675,7 +675,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
private void handleRegisterForSignal() {
Intent intent = new Intent(this, RegistrationActivity.class);
intent.putExtra("cancel_button", true);
intent.putExtra(RegistrationActivity.RE_REGISTRATION_EXTRA, true);
startActivity(intent);
}

View File

@ -16,7 +16,7 @@ public class PushRegistrationReminder extends Reminder {
final OnClickListener okListener = v -> {
Intent intent = new Intent(context, RegistrationActivity.class);
intent.putExtra("cancel_button", true);
intent.putExtra(RegistrationActivity.RE_REGISTRATION_EXTRA, true);
context.startActivity(intent);
};

View File

@ -14,7 +14,11 @@ public class UnauthorizedReminder extends Reminder {
super(context.getString(R.string.UnauthorizedReminder_device_no_longer_registered),
context.getString(R.string.UnauthorizedReminder_this_is_likely_because_you_registered_your_phone_number_with_Signal_on_a_different_device));
setOkListener(v -> context.startActivity(new Intent(context, RegistrationActivity.class)));
setOkListener(v -> {
Intent intent = new Intent(context, RegistrationActivity.class);
intent.putExtra(RegistrationActivity.RE_REGISTRATION_EXTRA, true);
context.startActivity(intent);
});
}
@Override