2
0
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:
Grigory Kruglov 2022-01-11 17:27:39 -08:00 committed by Grisha Kruglov
parent b322e4c19b
commit 8c61f0c754

View File

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