Properly force refresh

This commit is contained in:
topjohnwu 2019-05-29 23:45:18 -07:00
parent be1228c3b4
commit b31d3802eb

View File

@ -94,7 +94,7 @@ class ModuleViewModel(
.toList()
.map { it to itemsInstalled.calculateDiff(it) }
.doOnSuccessUi { itemsInstalled.update(it.first, it.second) }
.flatMap { repoUpdater.exec() }
.flatMap { repoUpdater.exec(force) }
.flatMap { Single.fromCallable { repoDatabase.repoCursor.toList { Repo(it) } } }
.flattenAsFlowable { it }
.map { RepoRvItem(it) }