From 6789ad9c3c8f440062f2565971270b5dd897c640 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Oct 2018 05:48:44 +0000 Subject: [PATCH] Handle existing found messages --- .../faircode/email/BoundaryCallbackMessages.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java index 1d3178b7..8cd34f35 100644 --- a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java +++ b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java @@ -28,7 +28,9 @@ import com.sun.mail.imap.IMAPMessage; import com.sun.mail.imap.IMAPStore; import com.sun.mail.util.FolderClosedIOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import java.util.Properties; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @@ -63,6 +65,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback existing = new ArrayList<>(); private int index; private boolean searching = false; private int loaded = 0; @@ -91,7 +94,12 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback