mirror of https://github.com/M66B/FairEmail.git
Disable swipe refresh on selecting
This commit is contained in:
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…
Reference in New Issue