From 8c61f0c754f4114022a44df33107176ff6a74237 Mon Sep 17 00:00:00 2001 From: Grigory Kruglov Date: Tue, 11 Jan 2022 17:27:39 -0800 Subject: [PATCH] [fenix] Adjust logins diffing logic for recyclerview --- .../org/mozilla/fenix/settings/logins/view/LoginsAdapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/settings/logins/view/LoginsAdapter.kt b/app/src/main/java/org/mozilla/fenix/settings/logins/view/LoginsAdapter.kt index b5801ff9d0..ab347ca285 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/logins/view/LoginsAdapter.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/logins/view/LoginsAdapter.kt @@ -31,9 +31,9 @@ class LoginsAdapter( private object DiffCallback : DiffUtil.ItemCallback() { override fun areItemsTheSame(oldItem: SavedLogin, newItem: SavedLogin) = - oldItem.origin == newItem.origin + oldItem.guid == newItem.guid override fun areContentsTheSame(oldItem: SavedLogin, newItem: SavedLogin) = - oldItem == newItem + oldItem.origin == newItem.origin && oldItem.username == newItem.username } }