From: Damyan Ivanov Date: Wed, 3 Mar 2021 17:34:23 +0000 (+0200) Subject: set focus to the transaction description upon UI reset X-Git-Tag: v0.17.0~45 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=39a27f7bf061b6191e445c3a367a3e8d8b3d21f4;p=mobile-ledger.git set focus to the transaction description upon UI reset for example when the transaction is submitted --- 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 d1db37b2..637518f2 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 @@ -175,6 +175,7 @@ public class NewTransactionModel extends ViewModel { list.add(new TransactionHead("")); list.add(new TransactionAccount("")); list.add(new TransactionAccount("")); + noteFocusChanged(0, FocusedElement.Description); setItemsWithoutSubmittableChecks(list); } boolean accountsInInitialState() {