Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Update post comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
onlymash committed Apr 25, 2020
1 parent 80f43c8 commit fa02e17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PostAdapter(
companion object {
val POST_COMPARATOR = object : DiffUtil.ItemCallback<Post>() {
override fun areContentsTheSame(oldItem: Post, newItem: Post): Boolean =
oldItem == newItem
oldItem.id == newItem.id
override fun areItemsTheSame(oldItem: Post, newItem: Post): Boolean =
oldItem.id == newItem.id
}
Expand Down

0 comments on commit fa02e17

Please sign in to comment.