mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-19 18:35:34 +00:00
Trim host/domain names
This commit is contained in:
parent
440b0d1426
commit
f590613292
3 changed files with 6 additions and 6 deletions
|
@ -435,7 +435,7 @@ public class FragmentAccount extends FragmentBase {
|
|||
|
||||
private void onAutoConfig() {
|
||||
Bundle args = new Bundle();
|
||||
args.putString("domain", etDomain.getText().toString());
|
||||
args.putString("domain", etDomain.getText().toString().trim());
|
||||
|
||||
new SimpleTask<EmailProvider>() {
|
||||
@Override
|
||||
|
@ -478,7 +478,7 @@ public class FragmentAccount extends FragmentBase {
|
|||
private void onCheck() {
|
||||
Bundle args = new Bundle();
|
||||
args.putLong("id", id);
|
||||
args.putString("host", etHost.getText().toString());
|
||||
args.putString("host", etHost.getText().toString().trim());
|
||||
args.putBoolean("starttls", rgEncryption.getCheckedRadioButtonId() == R.id.radio_starttls);
|
||||
args.putBoolean("insecure", cbInsecure.isChecked());
|
||||
args.putString("port", etPort.getText().toString());
|
||||
|
@ -673,7 +673,7 @@ public class FragmentAccount extends FragmentBase {
|
|||
Bundle args = new Bundle();
|
||||
args.putLong("id", id);
|
||||
|
||||
args.putString("host", etHost.getText().toString());
|
||||
args.putString("host", etHost.getText().toString().trim());
|
||||
args.putBoolean("starttls", rgEncryption.getCheckedRadioButtonId() == R.id.radio_starttls);
|
||||
args.putBoolean("insecure", cbInsecure.isChecked());
|
||||
args.putString("port", etPort.getText().toString());
|
||||
|
|
|
@ -439,7 +439,7 @@ public class FragmentIdentity extends FragmentBase {
|
|||
btnAutoConfig.setEnabled(false);
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putString("domain", etDomain.getText().toString());
|
||||
args.putString("domain", etDomain.getText().toString().trim());
|
||||
|
||||
new SimpleTask<EmailProvider>() {
|
||||
@Override
|
||||
|
@ -502,7 +502,7 @@ public class FragmentIdentity extends FragmentBase {
|
|||
args.putString("replyto", etReplyTo.getText().toString().trim());
|
||||
args.putString("bcc", etBcc.getText().toString().trim());
|
||||
args.putLong("account", account == null ? -1 : account.id);
|
||||
args.putString("host", etHost.getText().toString());
|
||||
args.putString("host", etHost.getText().toString().trim());
|
||||
args.putBoolean("starttls", rgEncryption.getCheckedRadioButtonId() == R.id.radio_starttls);
|
||||
args.putBoolean("insecure", cbInsecure.isChecked());
|
||||
args.putString("port", etPort.getText().toString());
|
||||
|
|
|
@ -175,7 +175,7 @@ public class FragmentPop extends FragmentBase {
|
|||
Bundle args = new Bundle();
|
||||
args.putLong("id", id);
|
||||
|
||||
args.putString("host", etHost.getText().toString());
|
||||
args.putString("host", etHost.getText().toString().trim());
|
||||
args.putBoolean("starttls", rgEncryption.getCheckedRadioButtonId() == R.id.radio_starttls);
|
||||
args.putBoolean("insecure", cbInsecure.isChecked());
|
||||
args.putString("port", etPort.getText().toString());
|
||||
|
|
Loading…
Add table
Reference in a new issue