This PR adds missing dialing codes for which a flag and name exists, but the dialing code did not and fixes the following bugs:
Country being updated wrongly in case of duplicate dial codes. For example, US and Canada both have the dial code 1, but selecting Canada and updating the number automatically selected the US flag instead. The new behavior is that if a selected country with the same dial code already exists, then the country flag will not be updated.
NPE when selecting a country flag while the input contained an invalid dial code, eg. +9. The nev behaviour is that the invalid content will be removed.
This PR adds missing dialing codes for which a flag and name exists, but the dialing code did not and fixes the following bugs:
Country being updated wrongly in case of duplicate dial codes. For example, US and Canada both have the dial code 1, but selecting Canada and updating the number automatically selected the US flag instead. The new behavior is that if a selected country with the same dial code already exists, then the country flag will not be updated.
NPE when selecting a country flag while the input contained an invalid dial code, eg. +9. The nev behaviour is that the invalid content will be removed.