Fixed POP3 default max messages

This commit is contained in:
M66B 2020-05-01 07:47:02 +02:00
parent e3d5aea268
commit 574bd517b8
1 changed files with 5 additions and 2 deletions

View File

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