[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 destination.iconNotSelected
}, },
contentDescription = stringResource(destination.label), contentDescription = stringResource(destination.label),
tint = if (isCurrentDestOnBackStack) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant
) )
}, },
label = { label = {

View File

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