mirror of https://github.com/M66B/FairEmail.git
Workaround selection tracker crash
This commit is contained in:
parent
2bfd73327c
commit
f245031488
|
@ -395,11 +395,16 @@ public class FragmentMessages extends FragmentEx {
|
|||
selectionTracker.addObserver(new SelectionTracker.SelectionObserver() {
|
||||
@Override
|
||||
public void onSelectionChanged() {
|
||||
if (selectionTracker.hasSelection())
|
||||
if (selectionTracker.hasSelection()) {
|
||||
if (messages != null) {
|
||||
messages.removeObservers(getViewLifecycleOwner());
|
||||
messages = null;
|
||||
}
|
||||
fabMore.show();
|
||||
else {
|
||||
} else {
|
||||
fabMore.hide();
|
||||
predicate.clearAccount();
|
||||
loadMessages();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue