manager: do not show some infocard item if ksuVersion is null

This commit is contained in:
rifsxd
2025-05-23 21:57:12 +06:00
parent ea4b8f51c2
commit db223a1e92

View File

@@ -457,7 +457,6 @@ private fun InfoCard() {
}
Column {
if (ksuVersion != null) {
val managerVersion = getManagerVersion(context)
InfoCardItem(
label = stringResource(R.string.home_manager_version),
@@ -474,6 +473,7 @@ private fun InfoCard() {
)
}
if (ksuVersion != null) {
Spacer(Modifier.height(16.dp))
InfoCardItem(
label = stringResource(R.string.home_mount_system),
@@ -481,6 +481,7 @@ private fun InfoCard() {
icon = Icons.Filled.SettingsSuggest,
)
val suSFS = getSuSFS()
if (suSFS == "Supported") {
val isSUS_SU = getSuSFSFeatures() == "CONFIG_KSU_SUSFS_SUS_SU"