jayyaj12 720ffd6aa1 [ButtonToggleGroup] Fix broken corner morph animation by skipping redundant updates
This fix resolves a regression where the corner morph animation in MaterialButtonToggleGroup was abrupt or interrupted in recent versions (1.14.0-alpha07+).

The issue was caused by unconditional calls to setShapeAppearanceModel() during layout updates. This triggered a reset in MaterialShapeDrawable (due to stricter checks in recent optimizations), cancelling the ongoing animation.

We added a check to compare the calculated corner sizes with the current button's shape. If they are effectively equal, the update is skipped to preserve the ongoing animation.

Closes #4990
2026-01-14 15:30:26 +09:00
..