From: Damyan Ivanov Date: Sat, 25 Jan 2020 13:09:56 +0000 (+0200) Subject: a single positive amount (with multiple negative amounts) is omitted X-Git-Tag: v0.12.0~91 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=3cd9965f1b70b82564aeaf2beb6ce6be4c18ff50;p=mobile-ledger.git a single positive amount (with multiple negative amounts) is omitted --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java index b956c7e8..4d18db6a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java @@ -227,7 +227,9 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter accounts = tr.getAccounts(); NewTransactionModel.Item firstNegative = null; + NewTransactionModel.Item firstPositive = null; boolean singleNegative = false; + boolean singlePositive = false; int negativeCount = 0; for (int i = 0; i < accounts.size(); i++) { LedgerTransactionAccount acc = accounts.get(i); @@ -251,6 +253,14 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter