From 4290819ad433a868a839410bd898cc6accc2f4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20S=C3=B6be?= Date: Mon, 1 Nov 2021 22:16:26 +0300 Subject: [PATCH] fix diffCallback equality control --- .../dialogs/list/info/InfoListItemDiffCallback.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/list/info/InfoListItemDiffCallback.kt b/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/list/info/InfoListItemDiffCallback.kt index 229f2261..28054ea8 100644 --- a/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/list/info/InfoListItemDiffCallback.kt +++ b/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/list/info/InfoListItemDiffCallback.kt @@ -7,13 +7,13 @@ class InfoListItemDiffCallback : DiffUtil.ItemCallback, newItem: Pair ): Boolean { - return oldItem.first == newItem.first && oldItem.second.toString() == newItem.second.toString() + return oldItem == newItem } override fun areItemsTheSame( oldItem: Pair, newItem: Pair ): Boolean { - return oldItem.second == newItem.second + return oldItem == newItem } } \ No newline at end of file