Elimination of country code 0 in Delete account

This commit is contained in:
Sgn-32 2022-03-29 21:59:01 +02:00 committed by Cody Henthorne
parent 87b00bb156
commit b8bb2e234b

View file

@ -41,7 +41,7 @@ public class DeleteAccountViewModel extends ViewModel {
public DeleteAccountViewModel(@NonNull DeleteAccountRepository repository) {
this.repository = repository;
this.allCountries = repository.getAllCountries();
this.regionCode = new DefaultValueLiveData<>(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY);
this.regionCode = new DefaultValueLiveData<>("ZZ"); // PhoneNumberUtil private static final String UNKNOWN_REGION = "ZZ";
this.nationalNumber = new MutableLiveData<>();
this.query = new DefaultValueLiveData<>("");
this.countryDisplayName = Transformations.map(regionCode, repository::getRegionDisplayName);