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);
|
||||
|
||||
EntityAccount account = (EntityAccount) spAccount.getSelectedItem();
|
||||
etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
|
||||
account == null ||
|
||||
provider.imap.host == null || !provider.imap.host.equals(account.host));
|
||||
tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
|
||||
account == null ||
|
||||
provider.imap.host == null || !provider.imap.host.equals(account.host));
|
||||
if (account == null ||
|
||||
provider.imap.host == null || !provider.imap.host.equals(account.host))
|
||||
auth = MailService.AUTH_TYPE_PASSWORD;
|
||||
else
|
||||
auth = account.auth_type;
|
||||
|
||||
etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD);
|
||||
tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue