Do not force +1 country code when restoring registration state.
This commit is contained in:
parent
e37d3be73a
commit
ab48aa5766
1 changed files with 7 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue