From 877d1f17643b2e87f86ef98bf826d65b8fb2e990 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 18 Jun 2021 16:50:09 +0200 Subject: [PATCH] Simplified search reset --- .../email/BoundaryCallbackMessages.java | 14 ++++++++++++++ .../eu/faircode/email/FragmentMessages.java | 19 ------------------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java index de96708b9c..a69f37a959 100644 --- a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java +++ b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java @@ -112,8 +112,22 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback() { - @Override - protected Void onExecute(Context context, Bundle args) { - DB.getInstance(context).message().resetSearch(); - return null; - } - - @Override - protected void onExecuted(Bundle args, Void data) { - reset = true; - loadMessagesNext(top); - } - - @Override - protected void onException(Bundle args, Throwable ex) { - Log.unexpectedError(getParentFragmentManager(), ex); - } - }.execute(this, new Bundle(), "search:reset"); } else loadMessagesNext(top); }