2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00

For #15091 - Fixes RecentlyClosedAdapter DiffCallback (#16608)

This commit is contained in:
ekager 2020-11-17 07:40:33 -08:00 committed by GitHub
parent edfb85b021
commit 614471495d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
} }