From: Damyan Ivanov Date: Mon, 1 Mar 2021 05:57:58 +0000 (+0200) Subject: flag initial amount hint as present (still null) X-Git-Tag: v0.17.0~59 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=9d3292a088ce87c01e2c7338a670efecd92c5fe9;p=mobile-ledger.git flag initial amount hint as present (still null) this avoids unnecessary item replacement manifesting as selection change when the first letter of the account name is entered --- 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 da09fd89..b22bcc14 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 @@ -1035,7 +1035,7 @@ public class NewTransactionModel extends ViewModel { private boolean amountSet; private boolean amountValid = true; private FocusedElement focusedElement = FocusedElement.Account; - private boolean amountHintIsSet = false; + private boolean amountHintIsSet = true; private boolean isLast = false; public TransactionAccount(TransactionAccount origin) { id = origin.id;