[Internal][CollapsingTextHelper] Fix letter spacing not updating correctly by pubiqq · Pull Request #5016 · material-components/material-components-android

@pubiqq

@pubiqq

drchen

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.