Trackers empty scores start starts from middle (#9624)
* Trackers empty scores start starts from middle * Trackers empty scores start starts from middle * Trackers empty scores start starts from middle
Cette révision appartient à :
Parent
f2b0d74b4c
révision
2eca8511cb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
|
@ -123,7 +123,7 @@ fun TrackScoreSelector(
|
|||
content = {
|
||||
WheelTextPicker(
|
||||
modifier = Modifier.align(Alignment.Center),
|
||||
startIndex = selections.indexOf(selection).coerceAtLeast(0),
|
||||
startIndex = selections.indexOf(selection).takeIf { it > 0 } ?: (selections.size / 2),
|
||||
items = selections,
|
||||
onSelectionChanged = { onSelectionChange(selections[it]) },
|
||||
)
|
||||
|
|
Référencer dans un nouveau ticket