Sep 7, 2018 · 1 min read
please change updateList to
public void updateList(ArrayList<Person> newList) {
DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new MyDiffCallback(newList, this.persons));
this.persons =newList;
diffResult.dispatchUpdatesTo(this);
}