List of usage examples for android.telephony PhoneNumberFormattingTextWatcher PhoneNumberFormattingTextWatcher
public PhoneNumberFormattingTextWatcher(String countryCode)
countryCode
. From source file:com.tomeokin.lspush.biz.auth.adapter.PhoneFieldViewHolder.java
private void updatePhoneNumberFormatting(CountryCodeData countryCodeData) { if (mFormatWatcher != null) { mPhoneField.removeTextChangedListener(mFormatWatcher); }//w w w . j a v a2 s.c om mFormatWatcher = new PhoneNumberFormattingTextWatcher(countryCodeData.country); mPhoneField.addTextChangedListener(mFormatWatcher); }