Skip to content

Commit 6bf9e99

Browse files
committed
fix: Use same sized list items when choosing a constraint.
1 parent 241ac70 commit 6bf9e99

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Do not automatically select the key mapper keyboard when the accessibility service starts.
88
- #1686 do not show some screens behind system bars on the left/right side of the device.
9+
- Use same sized list items when choosing a constraint.
910

1011
## [3.1.0](https://github.com/sds100/KeyMapper/releases/tag/v3.1.0)
1112

app/src/main/java/io/github/sds100/keymapper/constraints/ChooseConstraintScreen.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import io.github.sds100.keymapper.R
4949
import io.github.sds100.keymapper.compose.KeyMapperTheme
5050
import io.github.sds100.keymapper.util.State
5151
import io.github.sds100.keymapper.util.ui.compose.ComposeIconInfo
52-
import io.github.sds100.keymapper.util.ui.compose.SimpleListItem
52+
import io.github.sds100.keymapper.util.ui.compose.SimpleListItemFixedHeight
5353
import io.github.sds100.keymapper.util.ui.compose.SimpleListItemModel
5454
import kotlinx.coroutines.flow.update
5555

@@ -246,7 +246,7 @@ private fun ListScreen(
246246
horizontalArrangement = Arrangement.spacedBy(8.dp),
247247
) {
248248
items(listItems, key = { it.id }) { model ->
249-
SimpleListItem(
249+
SimpleListItemFixedHeight(
250250
modifier = Modifier.fillMaxWidth(),
251251
model = model,
252252
onClick = { onClickAction(model.id) },
@@ -291,12 +291,12 @@ private fun PreviewGrid() {
291291
state = State.Data(
292292
listOf(
293293
SimpleListItemModel(
294-
"app",
294+
"app1",
295295
title = "App in foreground",
296296
icon = ComposeIconInfo.Vector(Icons.Rounded.Android),
297297
),
298298
SimpleListItemModel(
299-
"app",
299+
"app2",
300300
title = "App not in foreground",
301301
icon = ComposeIconInfo.Vector(Icons.Rounded.Android),
302302
subtitle = "Error",

0 commit comments

Comments
 (0)