mirror of https://github.com/M66B/FairEmail.git
Update identity auth type on changing provider
This commit is contained in:
parent
c665dc2d05
commit
4708680e5d
|
@ -374,12 +374,14 @@ public class FragmentIdentity extends FragmentBase {
|
||||||
cbUseIp.setChecked(provider.useip);
|
cbUseIp.setChecked(provider.useip);
|
||||||
|
|
||||||
EntityAccount account = (EntityAccount) spAccount.getSelectedItem();
|
EntityAccount account = (EntityAccount) spAccount.getSelectedItem();
|
||||||
etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
|
if (account == null ||
|
||||||
account == null ||
|
provider.imap.host == null || !provider.imap.host.equals(account.host))
|
||||||
provider.imap.host == null || !provider.imap.host.equals(account.host));
|
auth = MailService.AUTH_TYPE_PASSWORD;
|
||||||
tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
|
else
|
||||||
account == null ||
|
auth = account.auth_type;
|
||||||
provider.imap.host == null || !provider.imap.host.equals(account.host));
|
|
||||||
|
etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD);
|
||||||
|
tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue