Disallow alpha chars in country code field

// FREEBIe
This commit is contained in:
Moxie Marlinspike 2017-08-07 12:40:40 -07:00
parent 25a30d63a5
commit 47901e4198

View File

@ -298,7 +298,7 @@ public class RegistrationActivity extends BaseActionBarActivity {
private class CountryCodeChangedListener implements TextWatcher {
@Override
public void afterTextChanged(Editable s) {
if (TextUtils.isEmpty(s)) {
if (TextUtils.isEmpty(s) || !TextUtils.isDigitsOnly(s)) {
setCountryDisplay(getString(R.string.RegistrationActivity_select_your_country));
countryFormatter = null;
return;