4 Commits

Author SHA1 Message Date
nschnettler
23b7157a64 [Badging] Fix NPE in BadgeState
Resolves https://github.com/material-components/material-components-android/issues/2846
Resolves https://github.com/material-components/material-components-android/pull/2848

GIT_ORIGIN_REV_ID=296c3ed2e05dd3e9f8c1cbaa71e7227cec9eec0c
PiperOrigin-RevId: 463482703
2022-07-28 17:39:17 -04:00
Material Design Team
285fa9de30 Automated g4 rollback of changelist 422930284
PiperOrigin-RevId: 422949121
2022-01-20 10:24:30 -05:00
Material Design Team
c52b95d4d5 Automated g4 rollback of changelist 420096508
PiperOrigin-RevId: 422930284
2022-01-19 19:34:23 -05:00
conradchen
bbbeacd64e [Badge] Refactor Badge state managing logic
This CL fixes a couple of badge state related issues. First, it prevents the badges created before restoring instance states from being overwritten by the old instance states. Second, it makes badges reload their default style settings everytime when its being recreated so if the environment has been changed, the default values will reflect the environment change.

This CL also fixes that several attributes were not correctly saved/restored or their default values were not correctly loaded.

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

PiperOrigin-RevId: 420096508
2022-01-06 15:51:50 -05:00