[skip ci]:Simplifying Conditional Judgment in the Selection of Installation Methods
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user