[Internal][CollapsingTextHelper] Fix letter spacing not updating correctly by pubiqq · Pull Request #5016 · material-components/material-components-android
| currentDrawY = lerp(expandedDrawY, collapsedDrawY, fraction, positionInterpolator); | ||
|
|
||
| setInterpolatedTextSize(fraction); | ||
|
|
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to keep this so the offset will be calculated correctly?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to keep this so the offset will be calculated correctly?
I'm not sure which offset you're referring to. The code block you highlighted is no longer needed because the updated calculateUsingTextSize() method already sets the correct letter spacing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters