Disable swipe refresh on selecting

pull/146/head
M66B 6 years ago
parent f406c5ebc3
commit 5dd109e19f

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

Loading…
Cancel
Save