mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-22 21:02:16 +03:00
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
This commit is contained in:
parent
f2b0d74b4c
commit
2eca8511cb
1 changed files with 1 additions and 1 deletions
|
@ -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]) },
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue