Check for reference equivalence in AbstractDiffUtilCallback

This commit is contained in:
Moez Bhatti
2017-11-29 07:43:18 -05:00
parent aadaff8140
commit fe528f97b7
@@ -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 {