6 Commits

Author SHA1 Message Date
haodong
f91a1eba99 Revert "[ChipGroup] Fix ChipGroup.getCheckedChipIds() returns wrong state"
This reverts commit 0356d7c391c4aa64e54a5aa398d58def673d0114.
2022-05-25 13:04:44 -07:00
conradchen
0356d7c391 [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 10:55:56 -07:00
cketcham
786ee8ba87 Fix failing test by adding AppCompat theme
PiperOrigin-RevId: 275535752
2019-11-01 13:28:40 -07:00
raajkumars
b72c7e7818 Updated MaterialTextView unit tests to use AppCompat theme.
PiperOrigin-RevId: 275034760
2019-10-21 10:23:35 -04:00
raajkumars
d7a92485f8 Added support to automatically inflate MaterialTextView component into TextView.
Added support to prevent applying line heights from text appearance styles if the current theme sets the flag 'textAppearanceLineHeightEnabled' to false.

PiperOrigin-RevId: 256216184
2019-07-03 14:12:29 -04:00
raajkumars
12024f61a6 Added MaterialTextView component, which supports the ability to pass the line height value via text appearance style.
PiperOrigin-RevId: 254790727
2019-06-24 17:30:00 -04:00