Created
May 11, 2018 02:57
-
-
Save jungilhan/3bcb820f20a8ea4bdcbbb250e4994970 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
private val DIFF_CALLBACK = object : DiffUtil.ItemCallback<Int>() { | |
override fun areItemsTheSame(oldItem: Int?, newItem: Int?) = | |
oldItem == newItem // check uniqueness | |
override fun areContentsTheSame(oldItem: Int?, newItem: Int?) = | |
oldItem == newItem // check contents | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment