Remember show system app toggle in MagiskHide list

This commit is contained in:
topjohnwu 2020-07-17 05:32:08 -07:00
parent 15866cfba9
commit c7044b0d20

View File

@ -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()
}