Fixed internationalizing showing amount

This commit is contained in:
dankl 2019-10-27 22:03:57 +01:00 committed by dankito
parent 89bba4bc11
commit 717e8f98f3
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ open class AccountTransactionAdapter
viewHolder.txtvwUsage2.visibility = View.GONE // TODO viewHolder.txtvwUsage2.visibility = View.GONE // TODO
viewHolder.txtvwUsage2.text = "" // 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) viewHolder.txtvwAmount.setTextColorToColorResource(if (item.amount >= BigDecimal.ZERO) R.color.positiveAmount else R.color.negativeAmount)
} }