manager: More standard working mode display (#384)
Actually, the working mode should be displayed here, rather than the kernel type This misled many people, leading them to misunderstand the meaning of GKI Signed-off-by: Cloud_Yun <1770669041@qq.com>
This commit is contained in:
@@ -14,7 +14,6 @@ data class KernelVersion(val major: Int, val patchLevel: Int, val subLevel: Int)
|
|||||||
major == 5 && patchLevel >= 10 -> true
|
major == 5 && patchLevel >= 10 -> true
|
||||||
else -> false
|
else -> false
|
||||||
}
|
}
|
||||||
fun isGKI1(): Boolean = (major == 4 && patchLevel >= 19) || (major == 5 && patchLevel < 10)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun parseKernelVersion(version: String): KernelVersion {
|
fun parseKernelVersion(version: String): KernelVersion {
|
||||||
|
|||||||
@@ -333,9 +333,7 @@ private fun StatusCard(
|
|||||||
|
|
||||||
val workingModeSurfaceText = when {
|
val workingModeSurfaceText = when {
|
||||||
systemStatus.lkmMode == true -> "LKM"
|
systemStatus.lkmMode == true -> "LKM"
|
||||||
systemStatus.lkmMode == null && systemStatus.kernelVersion.isGKI1() -> "GKI 1.0"
|
else -> "Built-in"
|
||||||
systemStatus.lkmMode == false || systemStatus.kernelVersion.isGKI() -> "GKI 2.0"
|
|
||||||
else -> "N-GKI"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Icon(
|
Icon(
|
||||||
|
|||||||
Reference in New Issue
Block a user