manager: Simplify KPM display judgment in Home messages
This commit is contained in:
@@ -704,9 +704,8 @@ private fun InfoCard(
|
||||
)
|
||||
|
||||
if (!isSimpleMode) {
|
||||
if (lkmMode != true) {
|
||||
// 根据showKpmInfo决定是否显示KPM信息
|
||||
if (showKpmInfo && Natives.version >= Natives.MINIMAL_SUPPORTED_KPM) {
|
||||
if (lkmMode != true && !showKpmInfo && Natives.version >= Natives.MINIMAL_SUPPORTED_KPM) {
|
||||
val displayVersion = if (systemInfo.kpmVersion.isEmpty() || systemInfo.kpmVersion.startsWith("Error")) {
|
||||
val statusText = if (Natives.isKPMEnabled()) {
|
||||
stringResource(R.string.kernel_patched)
|
||||
@@ -725,7 +724,6 @@ private fun InfoCard(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((!isSimpleMode) && (!isHideSusfsStatus)) {
|
||||
if (systemInfo.suSFSStatus == "Supported") {
|
||||
|
||||
Reference in New Issue
Block a user