[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
|
destination.iconNotSelected
|
||||||
},
|
},
|
||||||
contentDescription = stringResource(destination.label),
|
contentDescription = stringResource(destination.label),
|
||||||
|
tint = if (isCurrentDestOnBackStack) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
label = {
|
label = {
|
||||||
|
|||||||
@@ -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)
|
||||||
@@ -695,7 +694,6 @@ private fun SelectInstallMethod(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user