From: Damyan Ivanov Date: Thu, 4 Mar 2021 21:21:07 +0000 (+0200) Subject: drop improper list copy X-Git-Tag: v0.17.0~31 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=c9f30894817566586ff42216513adc4a69890da0;p=mobile-ledger.git drop improper list copy 1) the list shall be copied only when the original is the live list 2) a (proper) list copy is made just a couple of lines earlier --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java index 825f148a..707bc089 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java @@ -641,10 +641,6 @@ public class NewTransactionModel extends ViewModel { } final TransactionAccount newAcc = new TransactionAccount(acc); newAcc.setAmountHint(null); - if (!liveListCopied) { - list = copyList(list); - liveListCopied = true; - } list.set(i, newAcc); listChanged = true; }