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
Loading
Please register or sign in to comment