X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Fnew_transaction%2FNewTransactionAccountRowItemHolder.java;h=0725f92c4beb2add32966c198228ab204f767c6f;hb=a6f4bdc4089cffc79592f2d2256358de14055116;hp=229789e25c81a3bdf981042ce1b36334f315586f;hpb=2780d22c9b11fcd67eff8f839e4b25f8facd25c1;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 229789e2..0725f92c 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 @@ -404,7 +404,7 @@ class NewTransactionAccountRowItemHolder extends NewTransactionItemViewHolder { if (getBindingAdapterPosition() == RecyclerView.NO_POSITION) { // probably the row was swiped out - Logger.debug("new-trans", "Ignoring request to suncData(): adapter position negative"); + Logger.debug("new-trans", "Ignoring request to syncData(): adapter position negative"); return false; } @@ -455,6 +455,7 @@ class NewTransactionAccountRowItemHolder extends NewTransactionItemViewHolder { "input was '%s'", amount)); if (acc.isAmountValid()) significantChange = true; + acc.resetAmount(); acc.setAmountValid(false); } final String curr = String.valueOf(b.currency.getText());