mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-11 18:54:21 +00:00
Disallow alpha chars in country code field
// FREEBIe
This commit is contained in:
parent
25a30d63a5
commit
47901e4198
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user