From 614471495d4fe3f6d9a5295a4b200c037c3470ea Mon Sep 17 00:00:00 2001 From: ekager Date: Tue, 17 Nov 2020 07:40:33 -0800 Subject: [PATCH] For #15091 - Fixes RecentlyClosedAdapter DiffCallback (#16608) --- .../fenix/library/recentlyclosed/RecentlyClosedAdapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/library/recentlyclosed/RecentlyClosedAdapter.kt b/app/src/main/java/org/mozilla/fenix/library/recentlyclosed/RecentlyClosedAdapter.kt index db6121c1ea..12ee4590b7 100644 --- a/app/src/main/java/org/mozilla/fenix/library/recentlyclosed/RecentlyClosedAdapter.kt +++ b/app/src/main/java/org/mozilla/fenix/library/recentlyclosed/RecentlyClosedAdapter.kt @@ -28,9 +28,9 @@ class RecentlyClosedAdapter( private object DiffCallback : DiffUtil.ItemCallback() { override fun areItemsTheSame(oldItem: ClosedTab, newItem: ClosedTab) = - oldItem.id == newItem.id || oldItem.title == newItem.title || oldItem.url == newItem.url + oldItem.id == newItem.id override fun areContentsTheSame(oldItem: ClosedTab, newItem: ClosedTab) = - oldItem.id == newItem.id || oldItem.title == newItem.title || oldItem.url == newItem.url + oldItem.id == newItem.id } }