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

Commit 2f11a4a5 authored by Yuchen's avatar Yuchen
Browse files

[expressive design] Fix selected index of spinner.

Test: visual
Bug: 360916599
Flag: EXEMPT bug fix
Change-Id: I3e0ab31275f3d3c13877909fc653aa08a9656cd7
parent 81d5c9ce
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 = {