From: Damyan Ivanov Date: Wed, 12 May 2021 19:52:11 +0000 (+0300) Subject: fix a weird bug when an invalid amount is entered X-Git-Tag: v0.19.1~11 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a6f4bdc4089cffc79592f2d2256358de14055116;p=mobile-ledger.git fix a weird bug when an invalid amount is entered --- 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 488672d4..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 @@ -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());