Commit 024f1654 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

ref

parent 413f7f1b
...@@ -29,7 +29,7 @@ class SettingsScreenPresenter @Inject constructor( ...@@ -29,7 +29,7 @@ class SettingsScreenPresenter @Inject constructor(
val fetchSettings = interactor.fetchSettings() val fetchSettings = interactor.fetchSettings()
.flatMap {settings -> .flatMap {settings ->
interactor.getCacheInfo() interactor.getCacheInfo()
.doOnNext { Timber.d("$it") } .doOnNext { cached -> cached.sortBy { it.id } }
.doOnNext{ settings.cachedData = it } .doOnNext{ settings.cachedData = it }
.map { settings }} .map { settings }}
.map { SettingsScreenViewState.LoadSettingsList(it)} .map { SettingsScreenViewState.LoadSettingsList(it)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment