浏览代码

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
Semen 1 年之前
父节点
当前提交
2eca8511cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/eu/kanade/presentation/track/TrackInfoDialogSelector.kt

+ 1 - 1
app/src/main/java/eu/kanade/presentation/track/TrackInfoDialogSelector.kt

@@ -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]) },
             )