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() {
|
selectionTracker.addObserver(new SelectionTracker.SelectionObserver() {
|
||||||
@Override
|
@Override
|
||||||
public void onSelectionChanged() {
|
public void onSelectionChanged() {
|
||||||
|
swipeRefresh.setEnabled(false);
|
||||||
if (selectionTracker.hasSelection()) {
|
if (selectionTracker.hasSelection()) {
|
||||||
if (messages != null) {
|
if (messages != null) {
|
||||||
messages.removeObservers(getViewLifecycleOwner());
|
messages.removeObservers(getViewLifecycleOwner());
|
||||||
|
@ -402,9 +403,10 @@ public class FragmentMessages extends FragmentEx {
|
||||||
}
|
}
|
||||||
fabMore.show();
|
fabMore.show();
|
||||||
} else {
|
} else {
|
||||||
fabMore.hide();
|
|
||||||
predicate.clearAccount();
|
predicate.clearAccount();
|
||||||
|
fabMore.hide();
|
||||||
loadMessages();
|
loadMessages();
|
||||||
|
swipeRefresh.setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue