[skip ci]:Simplifying Conditional Judgment in the Selection of Installation Methods

This commit is contained in:
ShirkNeko
2025-05-05 19:14:34 +08:00
parent b5a5cdfcd2
commit ec86f5caf2
2 changed files with 2 additions and 3 deletions

View File

@@ -198,6 +198,7 @@ private fun BottomBar(navController: NavHostController) {
destination.iconNotSelected
},
contentDescription = stringResource(destination.label),
tint = if (isCurrentDestOnBackStack) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant
)
},
label = {

View File

@@ -639,8 +639,7 @@ private fun SelectInstallMethod(
bottom = 16.dp
)
) {
if (radioOptions.size > 3) {
radioOptions.drop(3).forEach { option ->
radioOptions.filterIsInstance<InstallMethod.HorizonKernel>().forEach { option ->
val interactionSource = remember { MutableInteractionSource() }
Surface(
color = if (option.javaClass == selectedOption?.javaClass)
@@ -695,7 +694,6 @@ private fun SelectInstallMethod(
}
}
}
}
}
}
}