From 096a9ad02af3b5a71fd2ccdfc536f2086a7fa217 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 16 Jul 2020 18:42:06 +0300 Subject: [PATCH] include amounts when comparing two account list items --- .../mobileledger/ui/account_summary/AccountSummaryAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java index ee46b9c7..3a528f57 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java @@ -62,7 +62,8 @@ public class AccountSummaryAdapter public boolean areContentsTheSame(@NotNull LedgerAccount oldItem, @NotNull LedgerAccount newItem) { return (oldItem.isExpanded() == newItem.isExpanded()) && - (oldItem.amountsExpanded() == newItem.amountsExpanded()); + (oldItem.amountsExpanded() == newItem.amountsExpanded() && + TextUtils.equals(oldItem.getAmountsString(), newItem.getAmountsString())); } }); } -- 2.39.5