String amount = String.valueOf(tvAmount.getText());
amount = amount.trim();
- if (!amount.isEmpty()) {
+ if (amount.isEmpty()) {
+ item.getAccount()
+ .resetAmount();
+ }
+ else {
try {
amount = amount.replace(decimalSeparator, decimalDot);
item.getAccount()
.resetAmount();
}
}
- else
- item.getAccount()
- .resetAmount();
break;
case bottomFiller: