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

Skip to content
Commit ef72e86c authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Revert^2 "Bunlde ClientTransactionItems when enter/exit PiP"

This reverts commit a5dca25e.

Enter PiP:
When changing the top activity from fullscreen to pip, the next
activity can be resumed by the same window transaction.

Exit PiP:
ResumeActivityItem and ActivityConfigurationChangeItem will be
bundled. In other words, the pip activity will be resumed before
the animation starts. Note that pip2 won't need this logic because
WOC#applyChanges already adds TRANSACT_EFFECTS_LIFECYCLE if task
windowing mode is changed to non-pip.

Bug: 333452456
Flag: com.android.window.flags.apply_lifecycle_on_pip_change
Test: atest WindowOrganizerTests#testResumeTopsWhenLeavingPinned
Test: adb shell setprop persist.wm.debug.apply_lifecycle_on_pip_change 1
      Expand pip, both the pip activity and task will become
      fullscreen windowing mode before the animation starts.
      And then TRANSACT_EFFECTS_LIFECYCLE will resume the pip
      because there is a windowing mode change on task.

Change-Id: I610ca30fd3068a3e400d176e7e9f3dbe014139b9
parent 56b9b7a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment