From 643ae4ecd882dd342d9b7a1ec6154b645376426e Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 23 Apr 2020 14:17:55 +0200 Subject: [PATCH] Fixed that amounts with ',' as decimal separator didn't get converted correctly to BigDecimal --- .../fints4java/android/ui/dialogs/TransferMoneyDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt index cb63b903..14894a8c 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt @@ -334,7 +334,7 @@ open class TransferMoneyDialog : DialogFragment() { protected open fun getEnteredAmount(): BigDecimal? { try { - val amountString = edtxtAmount.text.toString() + val amountString = edtxtAmount.text.toString().replace(',', '.') return amountString.toBigDecimal() } catch (ignored: Exception) { }