Remove spaces from host names

pull/187/head
M66B 4 years ago
parent d1d87f8808
commit 2df6cf857d

@ -601,7 +601,7 @@ public class FragmentAccount extends FragmentBase {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putLong("id", id); args.putLong("id", id);
args.putString("host", etHost.getText().toString().trim()); args.putString("host", etHost.getText().toString().trim().replace(" ", ""));
args.putInt("encryption", encryption); args.putInt("encryption", encryption);
args.putBoolean("insecure", cbInsecure.isChecked()); args.putBoolean("insecure", cbInsecure.isChecked());
args.putString("port", etPort.getText().toString()); args.putString("port", etPort.getText().toString());

@ -600,7 +600,7 @@ public class FragmentIdentity extends FragmentBase {
args.putBoolean("unicode", cbUnicode.isChecked()); args.putBoolean("unicode", cbUnicode.isChecked());
args.putString("max_size", etMaxSize.getText().toString()); args.putString("max_size", etMaxSize.getText().toString());
args.putLong("account", account == null ? -1 : account.id); args.putLong("account", account == null ? -1 : account.id);
args.putString("host", etHost.getText().toString().trim()); args.putString("host", etHost.getText().toString().trim().replace(" ", ""));
args.putInt("encryption", encryption); args.putInt("encryption", encryption);
args.putBoolean("insecure", cbInsecure.isChecked()); args.putBoolean("insecure", cbInsecure.isChecked());
args.putString("port", etPort.getText().toString()); args.putString("port", etPort.getText().toString());

@ -261,7 +261,7 @@ public class FragmentPop extends FragmentBase {
else else
encryption = EmailService.ENCRYPTION_SSL; encryption = EmailService.ENCRYPTION_SSL;
args.putString("host", etHost.getText().toString().trim()); args.putString("host", etHost.getText().toString().trim().replace(" ", ""));
args.putInt("encryption", encryption); args.putInt("encryption", encryption);
args.putBoolean("insecure", cbInsecure.isChecked()); args.putBoolean("insecure", cbInsecure.isChecked());
args.putString("port", etPort.getText().toString()); args.putString("port", etPort.getText().toString());

Loading…
Cancel
Save