|
|
|
|
@ -117,12 +117,9 @@ class BankrollDataFragment : EditableDataFragment(), StaticRowRepresentableDataS |
|
|
|
|
return when (row) { |
|
|
|
|
SimpleRow.NAME -> row.editingDescriptors(mapOf("defaultValue" to this.bankroll.name)) |
|
|
|
|
BankrollRow.RATE -> { |
|
|
|
|
|
|
|
|
|
this.bankroll.currency?.rate?.let { rate -> |
|
|
|
|
row.editingDescriptors(mapOf("defaultValue" to CurrencyUtils.getCurrencyRateFormatter().format(rate))) |
|
|
|
|
} ?: run { |
|
|
|
|
row.editingDescriptors(mapOf()) |
|
|
|
|
} |
|
|
|
|
val rate = this.bankroll.currency?.rate ?: 1.0 |
|
|
|
|
val rateFormatted = CurrencyUtils.getCurrencyRateFormatter().format(rate) |
|
|
|
|
row.editingDescriptors(mapOf("defaultValue" to rateFormatted)) |
|
|
|
|
} |
|
|
|
|
else -> null |
|
|
|
|
} |
|
|
|
|
|