I am using a RecyclerView
with ListAdapter (which uses AsyncListDiffer to calculate and animate changes when list is replaced).
The problem is that if I submit()
some list, then re-order that list, and submit()
again, nothing happens.
How do I force ListAdapter
to evaluate this new list, even though it is "the same" (but order has changed)?
New findings:
I checked source code of submitList() and in the beggining there is a check:
public void submitList(@Nullable final List<T> newList) {
final int runGeneration = ++this.mMaxScheduledGeneration;
if (newList != this.mList) {
I think this is the problem. But how to get past it? I mean, surely the developers thought about submiting a different ordered list?