X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Fnew_transaction%2FNewTransactionAccountRowItemHolder.java;h=8f1c51dd9ae24e9a922747a5e5536a09a6ab0b65;hb=9981e0f34f9107070a1b90acff7da76957fcdbbe;hp=04291c8dfb9e75c086650ef35d52046fd4390fb7;hpb=426a2bd8f495b5cf802e20248599dc5e08309aaf;p=mobile-ledger.git 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 04291c8d..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 @@ -98,7 +98,7 @@ class NewTransactionAccountRowItemHolder extends NewTransactionItemViewHolder { boolean wasSyncingData = syncingData; syncingData = true; try { - // FIXME this needs to reach the model somehow + // there is a listener that will propagate the change to the model b.accountRowAccAmounts.setText(newText); } finally { @@ -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