Closed gmikhail closed 1 year ago
Hi, Material themes are supposed to work with Material components. It's not guaranteed that AppCompat components will be styled correctly with Material themes. : )
I'll close this as working as intended.
Also this is how you can have preferences use a MaterialSwitch:
Description: The bug appears when using app theme
Theme.Material3.DayNight
, but not appears in default themeTheme.MaterialComponents.DayNight
.Note: this problem related to this issue ( https://issuetracker.google.com/issues/271871302 ) because
androidx.preference:preference
library seems to use the same widget component by default.Expected behavior: Similar look like in app theme
Theme.MaterialComponents.DayNight
.Android API version: 30
Material Library version: 1.8.0