remove white spaces from hostname
This commit is contained in:
parent
982a20fef5
commit
4d5e0c291e
|
@ -153,8 +153,8 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
|
||||||
String hostname = null;
|
String hostname = null;
|
||||||
int numericPort = 5222;
|
int numericPort = 5222;
|
||||||
if (mShowOptions) {
|
if (mShowOptions) {
|
||||||
hostname = mHostname.getText().toString();
|
hostname = mHostname.getText().toString().replaceAll("\\s","");
|
||||||
final String port = mPort.getText().toString();
|
final String port = mPort.getText().toString().replaceAll("\\s","");
|
||||||
if (hostname.contains(" ")) {
|
if (hostname.contains(" ")) {
|
||||||
mHostname.setError(getString(R.string.not_valid_hostname));
|
mHostname.setError(getString(R.string.not_valid_hostname));
|
||||||
mHostname.requestFocus();
|
mHostname.requestFocus();
|
||||||
|
|
Loading…
Reference in New Issue