From: Damyan Ivanov Date: Mon, 30 Aug 2021 16:43:30 +0000 (+0300) Subject: focus amount when account is selected X-Git-Tag: v0.20.1~7 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=9981e0f34f9107070a1b90acff7da76957fcdbbe;p=mobile-ledger.git focus amount when account is selected --- 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