From b8bb2e234bf1bd8e1c4f7b7e31235c2bb7a0cff2 Mon Sep 17 00:00:00 2001 From: Sgn-32 <49990901+Sgn-32@users.noreply.github.com> Date: Tue, 29 Mar 2022 21:59:01 +0200 Subject: [PATCH] Elimination of country code 0 in Delete account --- .../thoughtcrime/securesms/delete/DeleteAccountViewModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/delete/DeleteAccountViewModel.java b/app/src/main/java/org/thoughtcrime/securesms/delete/DeleteAccountViewModel.java index c74328a865..74c6bec5e8 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/delete/DeleteAccountViewModel.java +++ b/app/src/main/java/org/thoughtcrime/securesms/delete/DeleteAccountViewModel.java @@ -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);