Created
September 16, 2019 05:45
-
-
Save AlexMisiulia/2be0270135fdfe57457025ffc26b29d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun afterTextChanged(editable: Editable?) { | |
val number = editable.toString() | |
val countryIsoCode = getCountryIsoCode(number) | |
countryTextView.text = countryIsoCode ?: "Can't detect a country" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment