Unverified Commit 61447149 authored by ekager's avatar ekager Committed by GitHub
Browse files

For #15091 - Fixes RecentlyClosedAdapter DiffCallback (#16608)

parent edfb85b0
...@@ -28,9 +28,9 @@ class RecentlyClosedAdapter( ...@@ -28,9 +28,9 @@ class RecentlyClosedAdapter(
private object DiffCallback : DiffUtil.ItemCallback<ClosedTab>() { private object DiffCallback : DiffUtil.ItemCallback<ClosedTab>() {
override fun areItemsTheSame(oldItem: ClosedTab, newItem: ClosedTab) = 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) = override fun areContentsTheSame(oldItem: ClosedTab, newItem: ClosedTab) =
oldItem.id == newItem.id || oldItem.title == newItem.title || oldItem.url == newItem.url oldItem.id == newItem.id
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment