mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] Adjust logins diffing logic for recyclerview
This commit is contained in:
parent
b322e4c19b
commit
8c61f0c754
@ -31,9 +31,9 @@ class LoginsAdapter(
|
|||||||
|
|
||||||
private object DiffCallback : DiffUtil.ItemCallback<SavedLogin>() {
|
private object DiffCallback : DiffUtil.ItemCallback<SavedLogin>() {
|
||||||
override fun areItemsTheSame(oldItem: SavedLogin, newItem: SavedLogin) =
|
override fun areItemsTheSame(oldItem: SavedLogin, newItem: SavedLogin) =
|
||||||
oldItem.origin == newItem.origin
|
oldItem.guid == newItem.guid
|
||||||
|
|
||||||
override fun areContentsTheSame(oldItem: SavedLogin, newItem: SavedLogin) =
|
override fun areContentsTheSame(oldItem: SavedLogin, newItem: SavedLogin) =
|
||||||
oldItem == newItem
|
oldItem.origin == newItem.origin && oldItem.username == newItem.username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user