diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleViewModel.kt index ef0ab6a8a..d4c306604 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleViewModel.kt @@ -105,7 +105,7 @@ class ModuleViewModel( private val itemsInstalled @WorkerThread get() = items.filterIsInstance() - private val itemsUpdatable: List + private val itemsUpdatable @WorkerThread get() = items.filterIsInstance() private val itemsRemote @@ -282,8 +282,8 @@ class ModuleViewModel( @WorkerThread private fun build( active: List = itemsInstalled, - updatable: List = itemsUpdatable, - remote: List = itemsRemote + updatable: List = itemsUpdatable, + remote: List = itemsRemote ) = (active + InstallModule).prependIfNotEmpty { sectionActive } + updatable.prependIfNotEmpty { sectionUpdate } + remote.prependIfNotEmpty { sectionRemote }