]> git.ktnx.net Git - mobile-ledger.git/commitdiff
focus amount when account is selected
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 30 Aug 2021 16:43:30 +0000 (19:43 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 30 Aug 2021 16:43:30 +0000 (19:43 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java

index 1072d79881b377da8df20837d4e8d1310ab753e8..8f1c51dd9ae24e9a922747a5e5536a09a6ab0b65 100644 (file)
@@ -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