Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaba
fenix
Commits
61447149
Unverified
Commit
61447149
authored
Nov 17, 2020
by
ekager
Committed by
GitHub
Nov 17, 2020
Browse files
For #15091 - Fixes RecentlyClosedAdapter DiffCallback (#16608)
parent
edfb85b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/library/recentlyclosed/RecentlyClosedAdapter.kt
View file @
61447149
...
...
@@ -28,9 +28,9 @@ class RecentlyClosedAdapter(
private
object
DiffCallback
:
DiffUtil
.
ItemCallback
<
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
)
=
oldItem
.
id
==
newItem
.
id
||
oldItem
.
title
==
newItem
.
title
||
oldItem
.
url
==
newItem
.
url
oldItem
.
id
==
newItem
.
id
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment