mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 18:26:20 +00:00
Copy account auth type
This commit is contained in:
parent
4ce59d7017
commit
e80bc630e1
1 changed files with 4 additions and 0 deletions
|
@ -253,10 +253,14 @@ public class FragmentIdentity extends FragmentBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy account credentials
|
// Copy account credentials
|
||||||
|
auth = (account.auth_type == null ? MailService.AUTH_TYPE_PASSWORD : account.auth_type);
|
||||||
etEmail.setText(account.user);
|
etEmail.setText(account.user);
|
||||||
etUser.setText(account.user);
|
etUser.setText(account.user);
|
||||||
tilPassword.getEditText().setText(account.password);
|
tilPassword.getEditText().setText(account.password);
|
||||||
etRealm.setText(account.realm);
|
etRealm.setText(account.realm);
|
||||||
|
|
||||||
|
etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD);
|
||||||
|
tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD);
|
||||||
cbTrust.setChecked(false);
|
cbTrust.setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue