]> git.ktnx.net Git - mobile-ledger.git/commitdiff
set focus to the transaction description upon UI reset
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 17:34:23 +0000 (19:34 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 17:34:23 +0000 (19:34 +0200)
for example when the transaction is submitted

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

index d1db37b2c5f242ec8bb424537f94e75e21ee9276..637518f2eef27b446dd7977d44a7ea8040c27174 100644 (file)
@@ -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() {