diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/hide/HideViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/hide/HideViewModel.kt index 4db35a6ac..d63e17c25 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/hide/HideViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/hide/HideViewModel.kt @@ -4,6 +4,7 @@ import android.content.pm.ApplicationInfo import androidx.databinding.Bindable import androidx.lifecycle.viewModelScope import com.topjohnwu.magisk.BR +import com.topjohnwu.magisk.core.Config import com.topjohnwu.magisk.core.utils.currentLocale import com.topjohnwu.magisk.data.repository.MagiskRepository import com.topjohnwu.magisk.model.entity.HideAppInfo @@ -28,8 +29,9 @@ class HideViewModel( override val queryDelay = 1000L @get:Bindable - var isShowSystem = false + var isShowSystem = Config.showSystemApp set(value) = set(value, field, { field = it }, BR.showSystem){ + Config.showSystemApp = it submitQuery() }