mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-19 12:28:53 +01:00
Check for reference equivalence in AbstractDiffUtilCallback
This commit is contained in:
@@ -15,7 +15,7 @@ class AbstractDiffUtilCallback<T>(
|
|||||||
DiffUtil.Callback() {
|
DiffUtil.Callback() {
|
||||||
|
|
||||||
override fun areItemsTheSame(oldItemPosition: Int, newItemPosition: Int): Boolean {
|
override fun areItemsTheSame(oldItemPosition: Int, newItemPosition: Int): Boolean {
|
||||||
return oldList[oldItemPosition] == newList[newItemPosition]
|
return oldList[oldItemPosition] === newList[newItemPosition]
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getOldListSize(): Int {
|
override fun getOldListSize(): Int {
|
||||||
|
|||||||
Reference in New Issue
Block a user