mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 00:57:02 +05:30
WireGuardItem: fix checked change listener and theming
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
07d30410da
commit
b6e01e71fa
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ fun LazyItemScope.WireGuardItem(item: TodoItem) {
|
|||
trailing = {
|
||||
Switch(
|
||||
checked = checked,
|
||||
onCheckedChange = { checked = !checked },
|
||||
onCheckedChange = { checked = it },
|
||||
color = MaterialTheme.colors.onSecondary,
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue