Fix crash when tapping re-register banner view.

This commit is contained in:
Cody Henthorne
2023-07-27 17:05:21 -04:00
parent 74562432cf
commit fff0b8b187
6 changed files with 6 additions and 12 deletions

View File

@@ -10,13 +10,8 @@ import org.thoughtcrime.securesms.util.TextSecurePreferences;
public class UnauthorizedReminder extends Reminder {
public UnauthorizedReminder(final Context context) {
public UnauthorizedReminder() {
super(R.string.UnauthorizedReminder_this_is_likely_because_you_registered_your_phone_number_with_Signal_on_a_different_device);
setOkListener(v -> {
context.startActivity(RegistrationNavigationActivity.newIntentForReRegistration(context));
});
addAction(new Action(R.string.UnauthorizedReminder_reregister_action, R.id.reminder_action_re_register));
}

View File

@@ -75,7 +75,7 @@ class AppSettingsFragment : DSLSettingsFragment(
if (ExpiredBuildReminder.isEligible()) {
showReminder(ExpiredBuildReminder(context))
} else if (UnauthorizedReminder.isEligible(context)) {
showReminder(UnauthorizedReminder(context))
showReminder(UnauthorizedReminder())
} else {
hideReminders()
}