diff --git a/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/ToggleButton.kt b/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/ToggleButton.kt index b50bc9ff9..955aed9a7 100644 --- a/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/ToggleButton.kt +++ b/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/ToggleButton.kt @@ -72,7 +72,9 @@ fun NiaToggleButton( onClick = { onCheckedChange(!checked) }, modifier = modifier .size(size) - .toggleable(value = checked, enabled = enabled, role = Role.Button, onValueChange = {}) + .toggleable(value = checked, enabled = enabled, role = Role.Button, onValueChange = { + onCheckedChange(!checked) + }) .drawBehind { drawCircle( color = if (checked) checkedBackgroundColor else backgroundColor,