From 717e8f98f32682367d5d1ec9af9aa67ebbfe0d11 Mon Sep 17 00:00:00 2001 From: dankl Date: Sun, 27 Oct 2019 22:03:57 +0100 Subject: [PATCH] Fixed internationalizing showing amount --- .../fints4java/android/ui/adapter/AccountTransactionAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt index 2bf596d6..d4371c34 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt @@ -45,7 +45,7 @@ open class AccountTransactionAdapter viewHolder.txtvwUsage2.visibility = View.GONE // TODO viewHolder.txtvwUsage2.text = "" // TODO - viewHolder.txtvwAmount.text = item.amount.toString() + viewHolder.txtvwAmount.text = String.format("%.02f", item.amount) viewHolder.txtvwAmount.setTextColorToColorResource(if (item.amount >= BigDecimal.ZERO) R.color.positiveAmount else R.color.negativeAmount) }