I'm refactoring a RecyclerView.Adapter
to ListAdapter
. One unexpected thing after 3 staring hours is that submitList()
has to be called when the list is first populated.
I always thought that submitList()
was the unification of notify*()
, which means it is called on subsequent list modifications. However, with ListAdapter
, even the first time (this.someList = list;
inside constructor) is counted as modification, and submitList(this.someList)
has to be called right after that.
Is there any way to avoid calling submitList()
inside the constructor?