mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Fixed provider selection in case of Gmail/Android
This commit is contained in:
parent
17fb9feb32
commit
c27c2ef9c1
1 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue