Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e134516b authored by Stéphane BAUSSERON's avatar Stéphane BAUSSERON Committed by Stéphane BAUSSERON
Browse files

Fill mColumnsMap and mMessageItemCache before than spread cursor change event

parent e2e22836
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -589,12 +589,12 @@ public class MessageListAdapter extends RecyclerCursorAdapter<MessageListViewHol

    @Override
    public void changeCursor(Cursor cursor) {
        super.changeCursor(cursor);

        if (CursorUtils.isValid(cursor)) {
            mColumnsMap = new MessageColumns.ColumnsMap(cursor);
            mMessageItemCache = new MessageItemCache(mContext, mColumnsMap, mSearchHighlighter, MessageColumns.CACHE_SIZE);
        }

        super.changeCursor(cursor);
    }

    @Override