]> git.ktnx.net Git - mobile-ledger.git/commitdiff
flag initial amount hint as present (still null)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 1 Mar 2021 05:57:58 +0000 (07:57 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 1 Mar 2021 06:00:42 +0000 (06:00 +0000)
this avoids unnecessary item replacement manifesting as selection change
when the first letter of the account name is entered

app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java

index da09fd89a3818dcb9835bf3f96643b792d891d98..b22bcc14d390683055e64e9dccb4fdbe12d02507 100644 (file)
@@ -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;