From 104fa6f8c43bd019da67913543d40068c4500df4 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 23 May 2019 10:37:53 +0200 Subject: [PATCH] Copy custom IMAP host to custom SMTP host --- app/src/main/java/eu/faircode/email/FragmentIdentity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index 439a115d36..d250edd4cb 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -214,9 +214,11 @@ public class FragmentIdentity extends FragmentBase { auth_type = account.auth_type; // Select associated provider - if (position == 0) + if (position == 0) { spProvider.setSelection(0); - else { + etHost.setText(account.host.replace("imap", "smtp")); + etPort.setText(null); + } else { boolean found = false; for (int pos = 1; pos < spProvider.getAdapter().getCount(); pos++) { EmailProvider provider = (EmailProvider) spProvider.getItemAtPosition(pos);