From fe3f2df183640f9a86a21ff4fb209d553fbded00 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 10 Oct 2022 14:03:49 +0200 Subject: [PATCH] Server search fixes --- .../email/BoundaryCallbackMessages.java | 55 ++++++++++--------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java index cb190df0b2..7c35902eff 100644 --- a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java +++ b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java @@ -100,7 +100,6 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback() { - @Override - public int compare(Message m1, Message m2) { - Date d1 = null; - try { - d1 = m1.getReceivedDate(); - } catch (Throwable ex) { - Log.w(ex); - } - - Date d2 = null; - try { - d2 = m2.getReceivedDate(); - } catch (Throwable ex) { - Log.w(ex); - } - - return Long.compare(d1 == null ? 0 : d1.getTime(), d2 == null ? 0 : d2.getTime()); - } - }); } catch (MessagingException ex) { if (ex.getCause() instanceof ProtocolException) throw (ProtocolException) ex.getCause(); @@ -654,6 +628,33 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback