12 Commits

Author SHA1 Message Date
Material Design Team
60b0325b39 [Internal] Updated robolectric tests to run on minSdk 23
PiperOrigin-RevId: 774815542
2025-06-23 18:14:50 +00:00
conradchen
fd40fea461 [Switch] Override switch width set by AppCompat to respect the drawable width
PiperOrigin-RevId: 449238028
2022-05-17 14:55:17 -04:00
conradchen
413a047957 [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
2022-05-17 11:04:03 -04:00
dsn5ft
9cd794c72f [Gradle] Remove unit test resources from main library source set and refactor the way test resources are configured/accessed
Resolves https://github.com/material-components/material-components-android/issues/1709

PiperOrigin-RevId: 449026115
2022-05-16 16:08:05 -04:00
isabellekim
55200c3a8f Fix ExtendedFloatingActionButton to be WRAP_CONTENT when extended so that it will resizes on setText().
Resolves https://github.com/material-components/material-components-android/issues/449

PiperOrigin-RevId: 294261399
2020-02-10 17:29:35 -05:00
cketcham
282250136c Fix test failures caused by the @Config annotation overriding the application theme
It looks like there's no guarantee that the context defined on the Application will be used by the Activity, so it's better to set the theme on the Activity itself.

PiperOrigin-RevId: 285241791
2019-12-12 16:09:02 -05:00
marianomartin
3beaee4f94 Change extended fab API to make it simpler.
PiperOrigin-RevId: 266669035
2019-09-04 18:03:01 -04:00
Material Design Team
290a96d881 Automated g4 rollback of changelist 262421424
PiperOrigin-RevId: 262443338
2019-08-16 15:36:23 -04:00
marianomartin
0ce38bf95e Automated g4 rollback of changelist 262136482
PiperOrigin-RevId: 262421424
2019-08-16 15:35:44 -04:00
Material Design Team
9a7dfaaae4 Automated g4 rollback of changelist 262133140
PiperOrigin-RevId: 262136482
2019-08-16 15:31:16 -04:00
marianomartin
163d2828b3 Remove internalSetVisibility from ExtendedFab
PiperOrigin-RevId: 262133140
2019-08-16 15:30:29 -04:00
marianomartin
58d2085032 Refactor extended Fab and add test for behavior
PiperOrigin-RevId: 260841260
2019-08-02 15:34:16 -04:00