views-widgets-samples icon indicating copy to clipboard operation
views-widgets-samples copied to clipboard

areContentsTheSame only is called when areItemsTheSame is true

Open joseantoniocampillo opened this issue 3 years ago • 1 comments

https://github.com/android/views-widgets-samples/blob/f22069a57d5df0b58ce0be08086c3e9db35870b8/RecyclerViewKotlin/app/src/main/java/com/example/recyclersample/flowerList/FlowersAdapter.kt#L78

According to the documentation it should be the opposite.

joseantoniocampillo avatar Oct 11 '21 01:10 joseantoniocampillo

Relevant docs for this are here: https://developer.android.com/reference/androidx/recyclerview/widget/DiffUtil.ItemCallback

This code is still not in alignment with the docs.

sdwilsh avatar Mar 04 '24 18:03 sdwilsh