Match provider by encryption method too

This commit is contained in:
M66B 2019-07-30 18:58:29 +02:00
parent f2233cf9e9
commit a9a5ca6077
2 changed files with 6 additions and 3 deletions

View File

@ -1142,7 +1142,8 @@ public class FragmentAccount extends FragmentBase {
for (int pos = 2; pos < providers.size(); pos++) {
EmailProvider provider = providers.get(pos);
if (provider.imap_host.equals(account.host) &&
provider.imap_port == account.port) {
provider.imap_port == account.port &&
provider.imap_starttls == account.starttls) {
found = true;
spProvider.setTag(pos);
spProvider.setSelection(pos);

View File

@ -231,7 +231,8 @@ public class FragmentIdentity extends FragmentBase {
for (int pos = 1; pos < spProvider.getAdapter().getCount(); pos++) {
EmailProvider provider = (EmailProvider) spProvider.getItemAtPosition(pos);
if (provider.imap_host.equals(account.host) &&
provider.imap_port == account.port) {
provider.imap_port == account.port &&
provider.imap_starttls == account.starttls) {
found = true;
spProvider.setSelection(pos);
@ -925,7 +926,8 @@ public class FragmentIdentity extends FragmentBase {
for (int pos = 1; pos < providers.size(); pos++) {
EmailProvider provider = providers.get(pos);
if (provider.smtp_host.equals(identity.host) &&
provider.smtp_port == identity.port) {
provider.smtp_port == identity.port &&
provider.smtp_starttls == identity.starttls) {
spProvider.setTag(pos);
spProvider.setSelection(pos);
break;