Skip to content

Commit

Permalink
[Docs][Chip] Update chip documentation to use `setOnCheckedStateChang…
Browse files Browse the repository at this point in the history
…eListener` instead of `setOnCheckedChangeListener` which was deprecated in favour of the former

Resolves #3536

PiperOrigin-RevId: 560125494
  • Loading branch information
imhappi committed Aug 25, 2023
1 parent c6ea2d4 commit 0582b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/Chip.md
Expand Up @@ -176,7 +176,7 @@ following:
val checkedChipId = chipGroup.checkedChipId // Returns View.NO_ID if singleSelection = false
val checkedChipIds = chipGroup.checkedChipIds // Returns a list of the selected chips' IDs, if any

chipGroup.setOnCheckedChangeListener { group, checkedId ->
chipGroup.setOnCheckedStateChangeListener { group, checkedIds ->
// Responds to child chip checked/unchecked
}
```
Expand Down

0 comments on commit 0582b1a

Please sign in to comment.