]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix a weird bug when an invalid amount is entered
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 12 May 2021 19:52:11 +0000 (22:52 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 12 May 2021 19:52:11 +0000 (22:52 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java

index 488672d408ff1911420f1d846644df104fdfb1af..0725f92c4beb2add32966c198228ab204f767c6f 100644 (file)
@@ -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());