From a6f4bdc4089cffc79592f2d2256358de14055116 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 12 May 2021 22:52:11 +0300 Subject: [PATCH] fix a weird bug when an invalid amount is entered --- .../ui/new_transaction/NewTransactionAccountRowItemHolder.java | 1 + 1 file changed, 1 insertion(+) 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()); -- 2.39.5