Only apply defaults if the account is new

This commit is contained in:
Rene Treffer 2014-04-03 21:25:03 +02:00
parent 5684849249
commit 4ea11c15e3

View file

@ -132,9 +132,9 @@ public class EditAccount extends DialogFragment {
account.setServer(server);
} else {
account = new Account(username, server, password);
account.setOption(Account.OPTION_USETLS, true);
account.setOption(Account.OPTION_USECOMPRESSION, true);
}
account.setOption(Account.OPTION_USETLS, true);
account.setOption(Account.OPTION_USECOMPRESSION, true);
account.setOption(Account.OPTION_REGISTER, register.isChecked());
if (listener != null) {
listener.onAccountEdited(account);