From c9f30894817566586ff42216513adc4a69890da0 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 4 Mar 2021 23:21:07 +0200 Subject: [PATCH 1/1] 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 --- .../mobileledger/ui/new_transaction/NewTransactionModel.java | 4 ---- 1 file changed, 4 deletions(-) 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; } -- 2.39.2