Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f8802fd authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Reset state on aborted PiP transition

When a resize PiP transition is aborted, the PipTransitionState is left
in SCHEDULED_BOUNDS_CHANGE state and touches would be disabled, i.e. PiP
window is not interactable.

Fix the issue by advancing to CHANGED_BOUNDS state if we detect such
scenario. Moving forward, we should think about other PiP transitions
being aborted, like when in ENTERING_PIP or SWIPING_PIP states.

Added also logs for PipTransitionState#setState

Flag: com.android.wm.shell.enable_pip2
Bug: 407961511
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/ccPLyTWRVRM7TBKy0EPtOI
Test: Tap QSB and screen off immediately, with active PiP, see Video
Test: atest WMShellUnitTests:PipTransitionStateTest
Change-Id: I2e3969172115f4927474f3f7753d8c1c613aeaf2
parent 76765bb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment