mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-12 17:33:37 +00:00
Ignore manager not installed state
This commit is contained in:
parent
c50daa5c9e
commit
60e89a7d22
@ -90,7 +90,6 @@ class HomeViewModel(
|
|||||||
}
|
}
|
||||||
|
|
||||||
stateManager = when {
|
stateManager = when {
|
||||||
!app.isUpdateChannelCorrect && isConnected.get() -> MagiskState.NOT_INSTALLED
|
|
||||||
app.isObsolete -> MagiskState.OBSOLETE
|
app.isObsolete -> MagiskState.OBSOLETE
|
||||||
else -> MagiskState.UP_TO_DATE
|
else -> MagiskState.UP_TO_DATE
|
||||||
}
|
}
|
||||||
@ -170,8 +169,6 @@ class HomeViewModel(
|
|||||||
|
|
||||||
private val MagiskJson.isObsolete
|
private val MagiskJson.isObsolete
|
||||||
get() = Info.env.isActive && Info.env.magiskVersionCode < versionCode
|
get() = Info.env.isActive && Info.env.magiskVersionCode < versionCode
|
||||||
private val ManagerJson.isUpdateChannelCorrect
|
|
||||||
get() = versionCode > 0
|
|
||||||
private val ManagerJson.isObsolete
|
private val ManagerJson.isObsolete
|
||||||
get() = BuildConfig.VERSION_CODE < versionCode
|
get() = BuildConfig.VERSION_CODE < versionCode
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user