Reset SafetyNet status on refresh

This commit is contained in:
topjohnwu 2019-05-11 01:55:44 -07:00
parent d5371f752c
commit 62db65bf18

View File

@ -163,6 +163,9 @@ class HomeViewModel(
state = State.LOADING
magiskState.value = MagiskState.LOADING
managerState.value = MagiskState.LOADING
ctsState.value = SafetyNetState.IDLE
basicIntegrityState.value = SafetyNetState.IDLE
safetyNetTitle.value = R.string.safetyNet_check_text
Event.reset(this)
Config.remoteMagiskVersionString = null
Config.remoteMagiskVersionCode = -1