From 5dd109e19fe6e65f43eedb95700541457fc83603 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 3 Dec 2018 18:42:11 +0100 Subject: [PATCH] Disable swipe refresh on selecting --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 0e0db13f93..041f37e359 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -395,6 +395,7 @@ public class FragmentMessages extends FragmentEx { selectionTracker.addObserver(new SelectionTracker.SelectionObserver() { @Override public void onSelectionChanged() { + swipeRefresh.setEnabled(false); if (selectionTracker.hasSelection()) { if (messages != null) { messages.removeObservers(getViewLifecycleOwner()); @@ -402,9 +403,10 @@ public class FragmentMessages extends FragmentEx { } fabMore.show(); } else { - fabMore.hide(); predicate.clearAccount(); + fabMore.hide(); loadMessages(); + swipeRefresh.setEnabled(true); } } });