conradchen 768d0cfa2b [ChipGroup] Fix ChipGroup.getCheckedChipIds() returns wrong state
In the Chip implementation, onCheckedChangeListener was called before onCheckedChangeListenerInternal. This causes an issue that in onCheckedChangeListener's callback, the checkable group's checked state is not updated yet, therefore ChipGroup.getCheckedChipIds() will return the outdated checked state.

Fixes this by overriding Chip.setOnCheckedChangeListener to get full control of the execution order between onCheckedChangeListener and onCheckedChangeListenerInternal.

Resolves https://github.com/material-components/material-components-android/issues/2691

PiperOrigin-RevId: 449100861
(cherry picked from commit 413a0479574b66be74f42bf9e8a11e1245c72a09)
2022-05-25 15:06:24 -07:00
..
2021-11-29 17:35:39 +00:00
2022-03-15 19:18:27 +00:00
2022-03-15 19:18:27 +00:00
2021-11-29 17:35:39 +00:00
2022-03-15 19:18:27 +00:00
2022-03-15 19:18:27 +00:00
2021-11-29 17:35:39 +00:00
2022-03-15 19:18:27 +00:00