Repository navigation
Commit e99a726
fix(android): lay out screens after the mount's changes, not during them
t3.28 applied pending screen changes as soon as a Fabric mount resized the
container, so a leaving screen was never resized. That attached the new
screen partway through the mount, before the rest of the mount had set up
its views. Compose content in it (a top app bar) composed early and was
redrawn a frame later, so its title appeared after the page.
The container now defers laying out its screens while a resize and a
screen change are pending, and lays them out once the change is applied
when the mount finishes. The leaving screen still keeps its size, and new
screens attach after the whole mount.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent cd2a327 commit e99a726
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
| |||
413 | 422 | | |
414 | 423 | | |
415 | 424 | | |
| 425 | + | |
416 | 426 | | |
417 | 427 | | |
418 | 428 | | |
419 | 429 | | |
420 | 430 | | |
| 431 | + | |
421 | 432 | | |
422 | 433 | | |
423 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments