Created
August 20, 2016 16:34
-
-
Save iammert/76aee53fdb540173a0a4db19da6f0d18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void updateList(ArrayList<Person> newList) { | |
DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new MyDiffCallback(this.persons, newList)); | |
diffResult.dispatchUpdatesTo(this); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@iammert Didn't we need to do something like this?