summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Hongwei Wang <hwwang@google.com> 2023-07-11 16:20:01 -0700
committer Hongwei Wang <hwwang@google.com> 2023-07-13 16:52:49 +0000
commit3dfe4c8e0955809ef96b1e89b87f9cabb9046b91 (patch)
treeb72e1788e05dfc152359dae12a7f303540ed31b6 /libs/hwui/FrameInfoVisualizer.cpp
parent1b84c3590508a67b5640673c67edbdf0ab25b6b0 (diff)
Ensure onStop before onPictureInPictureModeChanged
We have a CTS test case PinnedStackTests#testStopBeforeMultiWindowCallbacksOnDismiss that ensures onStop is always sent before onPictureInPictureModeChanged. The test itself does not simulate what user typically does and it's broken with the shell transition. Apps like YouTube may rely on such order so they can choose if they should, for instance, stop the playback when the PiP is removed. Fixing this by forcefully send onStop before setWindowingMode (which in turn results a configuration change). Video: http://recall/-/aaaaaabFQoRHlzixHdtY/eEEfu9mca0dzLyzC8jBcxb Bug: 290413333 Test: manually, see also the video Test: atest PinnedStackTests Merged-In: I0f94d4c26f7b3ccc1df6be97a0238f995438dffd Change-Id: I0f94d4c26f7b3ccc1df6be97a0238f995438dffd (cherry picked from commit 59c5d8101edc1192dfb04c73747aa210f28d3ea4)
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions