CountryCodePickerProject icon indicating copy to clipboard operation
CountryCodePickerProject copied to clipboard

problem with 4 character country code

Open 1ncludeX opened this issue 3 years ago • 1 comments

Hello! My problem is that I want to change the country code "Jamaica" from "+1" to "+1876", but when choosing a country code with a length of 4, the formatting fails, the last 4 digit of the country code goes to the edittext, and the formatting does not work right. Not to mention that the method "getfullnumberwithplus" country code remains "+1" and not "+1876" . I ask for help, preferably an ambulance). Thanks in advance.

1ncludeX avatar Apr 30 '22 12:04 1ncludeX

That is because +1 is country code and 876 is technically an area code (some countries have only one area code and some countries have more). The formatting is designed to consider country code (which is +1 in this case). If you are trying custom logic then formatting logic will need to modified as well.

hbb20 avatar Jul 24 '22 23:07 hbb20