mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-20 20:12:52 +08:00
Saving/restoring themeable fields will cause problems when the view is recreated, because those fields will be restored to the value resolved from the context before the recreation, instead of the current context. For example, when the device locale changes, those fields will still be restored to the previous locale instead of the new one. It's a general practice in Android framework and AndroidX not to save/restore themeable fields. If clients need this, they should implement their own logic. Resolves https://github.com/material-components/material-components-android/issues/2075 PiperOrigin-RevId: 454708278