Fixed provider selection in case of Gmail/Android

This commit is contained in:
M66B 2023-01-24 13:06:12 +01:00
parent 17fb9feb32
commit c27c2ef9c1
1 changed files with 2 additions and 1 deletions

View File

@ -1595,7 +1595,8 @@ public class FragmentAccount extends FragmentBase {
boolean found = false;
for (int pos = 2; pos < providers.size(); pos++) {
EmailProvider provider = providers.get(pos);
if ((provider.oauth != null) == (account.auth_type == AUTH_TYPE_OAUTH) &&
if ((provider.oauth != null) ==
(account.auth_type == AUTH_TYPE_GMAIL || account.auth_type == AUTH_TYPE_OAUTH) &&
provider.imap.host.equals(account.host) &&
provider.imap.port == account.port &&
provider.imap.starttls == (account.encryption == EmailService.ENCRYPTION_STARTTLS)) {