Fixes transaction currency

csv
Laurent 7 years ago
parent d0b142dad9
commit 7e267abe27
  1. 1
      app/src/main/java/net/pokeranalytics/android/ui/adapter/FeedTransactionRowRepresentableAdapter.kt
  2. 2
      app/src/main/java/net/pokeranalytics/android/ui/view/TransactionRowView.kt

@ -40,6 +40,7 @@ class FeedTransactionRowRepresentableAdapter(
* Display a transaction view
*/
inner class RowTransactionViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView), BindableHolder {
fun bind(position: Int, row: Transaction?, adapter: FeedTransactionRowRepresentableAdapter) {
itemView.transactionRow.setData(row as Transaction)

@ -63,7 +63,7 @@ class TransactionRowView : FrameLayout {
rowTransaction.transactionSubtitle.text = subtitle
// Amount
val formattedStat = ComputedStat(Stat.NET_RESULT, transaction.amount).format()
val formattedStat = ComputedStat(Stat.NET_RESULT, transaction.amount, currency = transaction.bankroll?.utilCurrency).format()
rowTransaction.transactionAmount.setTextFormat(formattedStat, context)
}

Loading…
Cancel
Save