From 17d0f11205510748865f16147685836fce74beca Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 31 Mar 2024 13:24:02 +0300 Subject: [PATCH] use the shortcut methods --- .../ui/account_summary/AccountSummaryFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java index 447e57e7..807c16da 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java @@ -204,8 +204,8 @@ public class AccountSummaryFragment extends MobileLedgerListFragment { } if (last != null) { - if (last.getType() != AccountListItem.Type.ACCOUNT || - !((AccountListItem.Account) last).allAmountsAreZero()) + if (!last.isAccount() || !last.toAccount() + .allAmountsAreZero()) { newList.add(last); } -- 2.39.5