mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +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);
|
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());
|
Log.i(Helper.TAG, "Submit messages=" + messages.size());
|
||||||
adapter.submitList(messages);
|
adapter.submitList(messages);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue