Do not force +1 country code when restoring registration state.

main
Nicholas Tinsley 2023-02-24 11:05:45 -05:00
rodzic e37d3be73a
commit ab48aa5766
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -129,8 +129,13 @@ public final class EnterPhoneNumberFragment extends LoggingFragment implements R
if (supportActionBar != null) {
supportActionBar.setTitle(null);
}
controller.prepopulateCountryCode();
controller.setNumberAndCountryCode(viewModel.getNumber());
final NumberViewState viewModelNumber = viewModel.getNumber();
if (viewModelNumber.getCountryCode() == 0) {
controller.prepopulateCountryCode();
}
controller.setNumberAndCountryCode(viewModelNumber);
showKeyboard(number.getEditText());
if (viewModel.hasUserSkippedReRegisterFlow() && viewModel.shouldAutoShowSmsConfirmDialog()) {