Allow setting username/password for password provider

pull/172/head
M66B 5 years ago
parent 69002e72c8
commit d26bb65510

@ -372,6 +372,12 @@ public class FragmentIdentity extends FragmentBase {
etPort.setText(position == 0 ? null : Integer.toString(provider.smtp.port));
rgEncryption.check(provider.smtp.starttls ? R.id.radio_starttls : R.id.radio_ssl);
cbUseIp.setChecked(provider.useip);
EntityAccount account = (EntityAccount) spAccount.getSelectedItem();
etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
account == null || !provider.imap.host.equals(account.host));
tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
account == null || !provider.imap.host.equals(account.host));
}
@Override

Loading…
Cancel
Save