Disable swipe refresh on selecting

This commit is contained in:
M66B 2018-12-03 18:42:11 +01:00
parent f406c5ebc3
commit 5dd109e19f
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}
});