DiffUtil ItemCallback areContentsTheSame() always returns true after updating an item on the ListAdapter
问题 While using a ListAdapter I noticed that after updating an item the DiffUtil.ItemCallback areContentsTheSame() method was always returning true. Debugging the code I realized that the old and the new item were exactly the same (the old state disappeared). Therefore the ListAdapter onBindViewHolder() method wasn't being called to update the respective row on the list (only the order of the items changed with a nice animation). Checking other questions on Stackoverflow looks like it's a common