You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(replay): Detect window size changes on activities with configChanges
Activities that declare android:configChanges="orientation|screenSize|..."
(e.g. Unity, fullscreen video players) keep the same root view across
rotations, so onRootViewsChanged never fires and determineWindowSize was
never re-invoked. The recording bitmap stayed at the pre-rotation size,
the rotated window content rendered into wrong-dim bitmaps, and SurfaceView
captures composited at stale coordinates.
Attach an OnLayoutChangeListener to each tracked root so a same-root
resize triggers determineWindowSize. The existing size-comparison guard
(both width and height must differ) keeps IME/adjustResize relayouts
from causing spurious reconfigurations.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments