Fix crash with 'select all' in conversation list.

Fixes #9790
This commit is contained in:
Greyson Parrelli 2020-06-26 10:11:23 -04:00
parent 6de789dfe3
commit 8c0160937b

View File

@ -213,7 +213,7 @@ class ConversationListAdapter extends PagedListAdapter<Conversation, RecyclerVie
} }
void selectAllThreads() { void selectAllThreads() {
for (int i = 0; i < getItemCount(); i++) { for (int i = 0; i < super.getItemCount(); i++) {
Conversation conversation = getItem(i); Conversation conversation = getItem(i);
if (conversation != null && conversation.getThreadRecord().getThreadId() != -1) { if (conversation != null && conversation.getThreadRecord().getThreadId() != -1) {
batchSet.put(conversation.getThreadRecord().getThreadId(), conversation); batchSet.put(conversation.getThreadRecord().getThreadId(), conversation);