From b31d3802ebe4ef7b113124633391b05cd0ca8ccd Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 29 May 2019 23:45:18 -0700 Subject: [PATCH] Properly force refresh --- .../main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt index 76df5c536..8bf79afb4 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt @@ -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) }