diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt index 938eb1321..0edcd405c 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt @@ -80,7 +80,9 @@ class HomeViewModel( it.bindExtra(BR.viewModel, this) } - private var checkedEnv = false + companion object { + private var checkedEnv = false + } override fun refresh() = viewModelScope.launch { state = State.LOADING