NearbyListUpdateCallback
ListUpdateCallback that dispatches update events to the given adapter.
This class is a wrapper around RecyclerView.Adapter that implements ListUpdateCallback. It is used to dispatch update events to the adapter when the underlying data changes.
It also handles updating the nearby items when an item is inserted or removed at the end of the list. This is to ensure that the dividers are drawn correctly.
Parameters
adapter
The adapter to dispatch update events to.