Allow ViewModel to opt-out RxJava

Transition period
This commit is contained in:
topjohnwu
2020-07-08 01:50:28 -07:00
parent dc8f0f6feb
commit f191db2fe0
6 changed files with 23 additions and 13 deletions
@@ -53,7 +53,7 @@ class SuperuserViewModel(
// ---
override fun refresh() = db.fetchAll()
override fun rxRefresh() = db.fetchAll()
.flattenAsFlowable { it }
.parallel()
.map { PolicyItem(it, it.applicationInfo.loadIcon(packageManager)) }