From 6913089f713b3adaa76d72e6f53fbf31083b0877 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 1 Apr 2020 11:40:21 +0200 Subject: [PATCH] Download 100 POP3 messages by default --- app/src/main/java/eu/faircode/email/FragmentPop.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentPop.java b/app/src/main/java/eu/faircode/email/FragmentPop.java index 5e38d7928f..19afce4816 100644 --- a/app/src/main/java/eu/faircode/email/FragmentPop.java +++ b/app/src/main/java/eu/faircode/email/FragmentPop.java @@ -99,6 +99,8 @@ public class FragmentPop extends FragmentBase { private static final int REQUEST_COLOR = 1; private static final int REQUEST_DELETE = 2; + private static final int MAX_MESSAGES = 100; + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -539,7 +541,8 @@ 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(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)); new SimpleTask() {