Retain previous selected state when updating list states

Fixes #8417
This commit is contained in:
arkon
2022-11-13 22:27:59 -05:00
parent b1ccebf329
commit 10e349f76e
7 changed files with 79 additions and 56 deletions
@@ -35,7 +35,7 @@ class DownloadPresenter : BasePresenter<DownloadController>() {
presenterScope.launch {
downloadQueue.updatedFlow()
.catch { error -> logcat(LogPriority.ERROR, error) }
.catch { logcat(LogPriority.ERROR, it) }
.map { downloads ->
downloads
.groupBy { it.source }