You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Wait for root service to bind
This commit is contained in:
@@ -35,7 +35,7 @@ class ModuleViewModel : AsyncLoadViewModel() {
|
||||
var loading = true
|
||||
private set(value) = set(value, field, { field = it }, BR.loading)
|
||||
|
||||
init {
|
||||
private suspend fun init() = withContext(Dispatchers.IO) {
|
||||
if (Info.env.isActive && LocalModule.loaded()) {
|
||||
items.insertItem(InstallModule)
|
||||
.insertList(itemsInstalled)
|
||||
@@ -44,6 +44,9 @@ class ModuleViewModel : AsyncLoadViewModel() {
|
||||
|
||||
override suspend fun doLoadWork() {
|
||||
loading = true
|
||||
if (items.isEmpty()) {
|
||||
init()
|
||||
}
|
||||
loadInstalled()
|
||||
loading = false
|
||||
loadUpdateInfo()
|
||||
|
||||
Reference in New Issue
Block a user