1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Download 100 POP3 messages by default

This commit is contained in:
M66B 2020-04-01 11:40:21 +02:00
parent 234d961909
commit 6913089f71

View file

@ -99,6 +99,8 @@ public class FragmentPop extends FragmentBase {
private static final int REQUEST_COLOR = 1; private static final int REQUEST_COLOR = 1;
private static final int REQUEST_DELETE = 2; private static final int REQUEST_DELETE = 2;
private static final int MAX_MESSAGES = 100;
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
@ -539,7 +541,8 @@ 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(account == null || account.max_messages == null ? null : Integer.toString(account.max_messages)); etMax.setText(Integer.toString(account == null || account.max_messages == null
? 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>() {