From 9d3292a088ce87c01e2c7338a670efecd92c5fe9 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 1 Mar 2021 07:57:58 +0200 Subject: [PATCH] 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 --- .../mobileledger/ui/new_transaction/NewTransactionModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5