mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-18 19:11:39 +08:00
When the collapsing title is fully expanded, the current logic won't update the linear text setting correctly to false, which may result in the issue that the type face is not updated correctly. Fixes this by always updating linear text settings when the available text width is not 0. Also refactors the typeface relevant logic so we will decide if we should recreate the static text layout in a consistent way. Resolves https://github.com/material-components/material-components-android/issues/2463 PiperOrigin-RevId: 446735260