From: Damyan Ivanov Date: Sun, 28 Feb 2021 17:32:55 +0000 (+0200) Subject: focus the first amount after loading a previous transaction X-Git-Tag: v0.17.0~63 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=b4d93e72e7b2643d59e41b516dc07092bfc0033d;p=mobile-ledger.git focus the first amount after loading a previous transaction --- 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 23be3eaf..ac0cf4b3 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 @@ -463,9 +463,9 @@ public class NewTransactionModel extends ViewModel { moveItemLast(newList, singlePositiveIndex); } - noteFocusChanged(1, FocusedElement.Description); - setItems(newList); + + noteFocusChanged(1, FocusedElement.Amount); } /** * A transaction is submittable if: