1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Prevent crash

This commit is contained in:
M66B 2018-12-03 09:56:35 +01:00
parent b5c7cea122
commit c1a52e91bb

View file

@ -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);