|
|
|
@ -45,12 +45,12 @@ class CurrenciesFragment : PokerAnalyticsFragment(), StaticRowRepresentableDataS |
|
|
|
private class CurrencyRow(var currency:Currency) : RowRepresentable { |
|
|
|
private class CurrencyRow(var currency:Currency) : RowRepresentable { |
|
|
|
|
|
|
|
|
|
|
|
override fun getDisplayName(): String { |
|
|
|
override fun getDisplayName(): String { |
|
|
|
return currency.getDisplayName(Locale.getDefault()) |
|
|
|
return currency.getDisplayName(Locale.getDefault()).capitalize() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun value(): String { |
|
|
|
var currencyCode: String = currency.currencyCode |
|
|
|
return "${currency.currencyCode} (${currency.getSymbol(Locale.getDefault())})" |
|
|
|
var currencySymbole: String = currency.getSymbol(Locale.getDefault()) |
|
|
|
} |
|
|
|
var currencyCodeAndSymbol: String = "${this.currencyCode} (${this.currencySymbole})" |
|
|
|
|
|
|
|
|
|
|
|
override val viewType: Int = RowViewType.TITLE_VALUE.ordinal |
|
|
|
override val viewType: Int = RowViewType.TITLE_VALUE.ordinal |
|
|
|
} |
|
|
|
} |
|
|
|
@ -79,7 +79,7 @@ class CurrenciesFragment : PokerAnalyticsFragment(), StaticRowRepresentableDataS |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun stringForRow(row: RowRepresentable): String { |
|
|
|
override fun stringForRow(row: RowRepresentable): String { |
|
|
|
return (row as CurrencyRow).value() |
|
|
|
return (row as CurrencyRow).currencyCodeAndSymbol |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// RowRepresentableDelegate |
|
|
|
// RowRepresentableDelegate |
|
|
|
|