forked from upstream-mirrors/quik
Check for reference equivalence in AbstractDiffUtilCallback
This commit is contained in:
@@ -15,7 +15,7 @@ class AbstractDiffUtilCallback<T>(
|
||||
DiffUtil.Callback() {
|
||||
|
||||
override fun areItemsTheSame(oldItemPosition: Int, newItemPosition: Int): Boolean {
|
||||
return oldList[oldItemPosition] == newList[newItemPosition]
|
||||
return oldList[oldItemPosition] === newList[newItemPosition]
|
||||
}
|
||||
|
||||
override fun getOldListSize(): Int {
|
||||
|
||||
Reference in New Issue
Block a user