Created
December 15, 2017 18:23
-
-
Save benbaxter/3f8443c775e20986cad72b70f8016147 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 setItems(final List itemList, final DiffCallback callback) { | |
if (callback == null) { | |
// shortcut when DiffCallback is not provided | |
mItems.clear(); | |
mItems.addAll(itemList); | |
notifyChanged(); | |
return; | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment