Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c8597da authored by Yuchen Sun's avatar Yuchen Sun Committed by Android (Google) Code Review
Browse files

Merge "[expressive design] Fix selected index of spinner." into main

parents 4fbece52 2f11a4a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -101,8 +101,8 @@ fun Spinner(options: List<SpinnerOption>, selectedId: Int?, setId: (id: Int) ->
                    Modifier.background(MaterialTheme.colorScheme.surfaceContainerLow)
                        .padding(horizontal = SettingsDimension.paddingSmall),
            ) {
                for ((index, option) in options.withIndex()) {
                    val selected = index + 1 == selectedId
                for (option in options) {
                    val selected = option.id == selectedId
                    DropdownMenuItem(
                        text = { SpinnerOptionText(option = option, selected) },
                        onClick = {