Fix the problem with the choice of country
This commit is contained in:
parent
cb10aa43c1
commit
5a746abfac
1 changed files with 3 additions and 3 deletions
|
@ -116,14 +116,14 @@ public class LinphoneLoginFragment extends Fragment implements CompoundButton.On
|
||||||
countryCode = proxyConfig.lookupCCCFromIso(countryIso.toUpperCase());
|
countryCode = proxyConfig.lookupCCCFromIso(countryIso.toUpperCase());
|
||||||
|
|
||||||
|
|
||||||
DialPlan c = AssistantActivity.instance().getCountryListAdapter()
|
DialPlan c = AssistantActivity.instance().country;
|
||||||
.getCountryFromCountryCode(String.valueOf(countryCode));
|
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
selectCountry.setText(c.getCountryName());
|
selectCountry.setText(c.getCountryName());
|
||||||
dialCode.setText(c.getCountryCallingCode().contains("+") ?
|
dialCode.setText(c.getCountryCallingCode().contains("+") ?
|
||||||
c.getCountryCallingCode() : "+" + c.getCountryCallingCode());
|
c.getCountryCallingCode() : "+" + c.getCountryCallingCode());
|
||||||
} else {
|
} else {
|
||||||
c = AssistantActivity.instance().country;
|
c = AssistantActivity.instance().getCountryListAdapter()
|
||||||
|
.getCountryFromCountryCode(String.valueOf(countryCode));
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
selectCountry.setText(c.getCountryName());
|
selectCountry.setText(c.getCountryName());
|
||||||
dialCode.setText(c.getCountryCallingCode().contains("+") ?
|
dialCode.setText(c.getCountryCallingCode().contains("+") ?
|
||||||
|
|
Loading…
Reference in a new issue