WireGuardItem: fix checked change listener and theming
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -48,7 +48,8 @@ fun LazyItemScope.WireGuardItem(item: TodoItem) {
|
||||
trailing = {
|
||||
Switch(
|
||||
checked = checked,
|
||||
onCheckedChange = { checked = !checked },
|
||||
onCheckedChange = { checked = it },
|
||||
color = MaterialTheme.colors.onSecondary,
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user