From: Damyan Ivanov Date: Thu, 16 Jul 2020 15:42:06 +0000 (+0300) Subject: include amounts when comparing two account list items X-Git-Tag: v0.15.0~85 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=096a9ad02af3b5a71fd2ccdfc536f2086a7fa217;p=mobile-ledger.git include amounts when comparing two account list items --- 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())); } }); }