Ignore manager not installed state

This commit is contained in:
vvb2060 2020-12-01 01:13:13 +08:00 committed by topjohnwu
parent c50daa5c9e
commit 60e89a7d22

View File

@ -90,7 +90,6 @@ class HomeViewModel(
}
stateManager = when {
!app.isUpdateChannelCorrect && isConnected.get() -> MagiskState.NOT_INSTALLED
app.isObsolete -> MagiskState.OBSOLETE
else -> MagiskState.UP_TO_DATE
}
@ -170,8 +169,6 @@ class HomeViewModel(
private val MagiskJson.isObsolete
get() = Info.env.isActive && Info.env.magiskVersionCode < versionCode
private val ManagerJson.isUpdateChannelCorrect
get() = versionCode > 0
private val ManagerJson.isObsolete
get() = BuildConfig.VERSION_CODE < versionCode