]> git.ktnx.net Git - mobile-ledger.git/commitdiff
include amounts when comparing two account list items
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 16 Jul 2020 15:42:06 +0000 (18:42 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 16 Jul 2020 15:42:06 +0000 (18:42 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java

index ee46b9c705dea401a2f1e7e1e00c689383cd273d..3a528f5783e0634365ce6250f03e79dfeae41d89 100644 (file)
@@ -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()));
             }
         });
     }