|
|
|
|
@ -111,7 +111,7 @@ class BankrollDataFragment : EditableDataFragment(), StaticRowRepresentableDataS |
|
|
|
|
|
|
|
|
|
override fun onRowSelected(position: Int, row: RowRepresentable, fromAction: Boolean) { |
|
|
|
|
when (row) { |
|
|
|
|
BankrollRow.CURRENCY -> CurrenciesActivity.newInstanceForResult(this@BankrollDataFragment, BankrollDataFragment.REQUEST_CODE_CURRENCY) |
|
|
|
|
BankrollRow.CURRENCY -> CurrenciesActivity.newInstanceForResult(this@BankrollDataFragment, REQUEST_CODE_CURRENCY) |
|
|
|
|
BankrollRow.REFRESH_RATE -> refreshRate() |
|
|
|
|
else -> super.onRowSelected(position, row, fromAction) |
|
|
|
|
} |
|
|
|
|
@ -197,7 +197,7 @@ class BankrollDataFragment : EditableDataFragment(), StaticRowRepresentableDataS |
|
|
|
|
|
|
|
|
|
override fun onResponse(call: Call<Map<String, CurrencyConverterValue>>, response: Response<Map<String, CurrencyConverterValue>>) { |
|
|
|
|
response.body()?.let { |
|
|
|
|
it[currenciesConverterValue]?.value?.let {rate -> |
|
|
|
|
it[currenciesConverterValue]?.value?.let { rate -> |
|
|
|
|
onRowValueChanged(rate.toString(), BankrollRow.RATE) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|