Commit b48fc50
fix(replay): Ignore layout changes on non-latest root in WindowRecorder
rootViews is a stack of windows (dialogs, popups, IME). The recorder
binds to the topmost root, so a background activity resizing underneath
a dialog must not reconfigure the recorder — we'd otherwise allocate a
bitmap sized to the activity while still recording the dialog. The
latest root's correct dimensions are already picked up via
determineWindowSize in the onRootViewsChanged remove path when the
overlaying window dismisses.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d0b25df commit b48fc50
1 file changed
Lines changed: 4 additions & 3 deletions
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
0 commit comments