From 3cd9965f1b70b82564aeaf2beb6ce6be4c18ff50 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 25 Jan 2020 15:09:56 +0200 Subject: [PATCH] a single positive amount (with multiple negative amounts) is omitted --- .../ui/activity/NewTransactionItemsAdapter.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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