From 39a27f7bf061b6191e445c3a367a3e8d8b3d21f4 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 3 Mar 2021 19:34:23 +0200 Subject: [PATCH] set focus to the transaction description upon UI reset for example when the transaction is submitted --- .../mobileledger/ui/new_transaction/NewTransactionModel.java | 1 + 1 file changed, 1 insertion(+) 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() { -- 2.39.5