Fixed POP3 default max messages

pull/178/head
M66B 5 years ago
parent e3d5aea268
commit 574bd517b8

@ -557,8 +557,11 @@ public class FragmentPop extends FragmentBase {
cbLeaveServer.setChecked(account == null ? true : account.leave_on_server); cbLeaveServer.setChecked(account == null ? true : account.leave_on_server);
cbLeaveDeleted.setChecked(account == null ? true : account.leave_deleted); cbLeaveDeleted.setChecked(account == null ? true : account.leave_deleted);
cbLeaveDevice.setChecked(account == null ? false : account.leave_on_device); cbLeaveDevice.setChecked(account == null ? false : account.leave_on_device);
etMax.setText(Integer.toString(account == null || account.max_messages == null if (account != null && account.max_messages == null)
? EntityAccount.DEFAULT_MAX_MESSAGES : account.max_messages)); etMax.setText(null);
else
etMax.setText(Integer.toString(account == null
? EntityAccount.DEFAULT_MAX_MESSAGES : account.max_messages));
etInterval.setText(account == null ? "" : Long.toString(account.poll_interval)); etInterval.setText(account == null ? "" : Long.toString(account.poll_interval));
new SimpleTask<EntityAccount>() { new SimpleTask<EntityAccount>() {

Loading…
Cancel
Save