manager: refactor working mode designation

This commit is contained in:
Rifat Azad
2025-05-18 01:56:47 +06:00
committed by GitHub
parent e9d53c4084
commit 0e8286e195

View File

@@ -255,12 +255,14 @@ private fun StatusCard(
else -> "" else -> ""
} }
val workingMode = when (lkmMode) { val workingMode = when {
null -> " <LTS>" lkmMode == true -> " <LKM>"
true -> " <LKM>" lkmMode == false || kernelVersion.isGKI() -> " <GKI>"
else -> " <GKI>" lkmMode == null && kernelVersion.major < 4 -> " <U-LEGACY>"
else -> " <LEGACY>"
} }
val workingText = val workingText =
"${stringResource(id = R.string.home_working)}$workingMode$safeMode" "${stringResource(id = R.string.home_working)}$workingMode$safeMode"