Refactors CursorAdapter to take in a layout inflater instead of a context.