Allow setting username/password for password provider

This commit is contained in:
M66B 2020-01-05 10:19:14 +01:00
parent 69002e72c8
commit d26bb65510
1 changed files with 6 additions and 0 deletions

View File

@ -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