Copy account auth type

pull/170/head
M66B 5 years ago
parent 4ce59d7017
commit e80bc630e1

@ -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…
Cancel
Save