From 9981e0f34f9107070a1b90acff7da76957fcdbbe Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 30 Aug 2021 19:43:30 +0300 Subject: [PATCH] focus amount when account is selected --- .../ui/new_transaction/NewTransactionAccountRowItemHolder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java index 1072d798..8f1c51dd 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java @@ -127,6 +127,9 @@ class NewTransactionAccountRowItemHolder extends NewTransactionItemViewHolder { b.accountRowAccName.setAdapter(new AccountWithAmountsAutocompleteAdapter(b.getRoot() .getContext(), mProfile)); + b.accountRowAccName.setOnItemClickListener((parent, view, position, id) -> { + adapter.noteFocusIsOnAmount(position); + }); final TextWatcher tw = new TextWatcher() { @Override -- 2.39.5