mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Prevent crash
This commit is contained in:
parent
b5c7cea122
commit
c1a52e91bb
1 changed files with 6 additions and 0 deletions
|
@ -1523,6 +1523,12 @@ public class FragmentMessages extends FragmentEx {
|
|||
model.setMessages(messages);
|
||||
}
|
||||
|
||||
if (selectionTracker != null) {
|
||||
PagedList<TupleMessageEx> current = adapter.getCurrentList();
|
||||
if (messages.size() != (current == null ? 0 : current.size()))
|
||||
selectionTracker.clearSelection();
|
||||
}
|
||||
|
||||
Log.i(Helper.TAG, "Submit messages=" + messages.size());
|
||||
adapter.submitList(messages);
|
||||
|
||||
|
|
Loading…
Reference in a new issue