summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2024-05-17 08:04:42 +0000
committer wilsonshih <wilsonshih@google.com> 2024-05-28 11:47:46 +0000
commit7baaa82e0ac169d0781c1b7d1e674ed113b31783 (patch)
tree1be1dbee993945d70359e0cc99fcac3368c2b11f /libs/androidfw/FileStream.cpp
parent4e1de135d6f7cea272bce473874fa24a666592dc (diff)
Fix snapshot window jump due to top window has another cutout mode
That jumping is because the WindowFrame of top fullscreen window isn't align with app main window. In core there only check app main window's cutout for layout, so for snapshot starting window, it should use app's main window's cutout instead of top opaque window. Another reason there doesn't need to use getTopFullscreenOpaqueWindow is because core won't ask to create snapshot starting window if the size/orientation of snapshot isn't align with the window configuration, so the SnapshotDrawerUtils will not needs to draw background and bars, since the aspectRatioMismatch should always return false. Bug: 341020277 Test: manual, create a second window for an activity, verify snapshot starting window won't jump when hot launch the app from background. Change-Id: I4c6b0ccacc79730552cbf9b4928b5c842f4feb1e
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions