Fixed that amounts with ',' as decimal separator didn't get converted correctly to BigDecimal

This commit is contained in:
dankito 2020-04-23 14:17:55 +02:00
parent a5e52c21b2
commit 643ae4ecd8
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ open class TransferMoneyDialog : DialogFragment() {
protected open fun getEnteredAmount(): BigDecimal? { protected open fun getEnteredAmount(): BigDecimal? {
try { try {
val amountString = edtxtAmount.text.toString() val amountString = edtxtAmount.text.toString().replace(',', '.')
return amountString.toBigDecimal() return amountString.toBigDecimal()
} catch (ignored: Exception) { } } catch (ignored: Exception) { }