Commit f86cedd
[Button] Defer icon changes during width animation in MaterialButton.
This change introduces pending states for icon and icon size. When a width animation is active, calls to setIcon and setIconSize are deferred and applied only after the animation completes, preventing layout conflicts.
PiperOrigin-RevId: 8403431321 parent 0b669da commit f86cedd
1 file changed
Lines changed: 19 additions & 0 deletions
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
347 | 360 | | |
348 | 361 | | |
349 | 362 | | |
| |||
864 | 877 | | |
865 | 878 | | |
866 | 879 | | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
867 | 883 | | |
868 | 884 | | |
869 | 885 | | |
| |||
893 | 909 | | |
894 | 910 | | |
895 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
896 | 915 | | |
897 | 916 | | |
898 | 917 | | |
| |||
0 commit comments