Fix not auto pip after swipe split pair to home

Rollback part of Ia4e0b5f7 to not reparent child task when finishing
recent transition to prevent it interfers with finishTransition
operations in wm-core. So it can check to file entering pip transition
when needed.

Fix: 279362184
Bug: 280387453
Test: atest WMShellUnitTests WMShellFlickerTests
Test: repro steps of the bug
Change-Id: Ibc3fedb7c925de8fc92fde212922f5cf12d94915
This commit is contained in:
Jerry Chang
2023-06-01 08:27:19 +00:00
parent 51e65b5aac
commit 9e03601a09

View File

@@ -2886,7 +2886,8 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
}
setSplitsVisible(false);
prepareExitSplitScreen(STAGE_TYPE_UNDEFINED, finishWct);
finishWct.setReparentLeafTaskIfRelaunch(mRootTaskInfo.token,
true /* reparentLeafTaskIfRelaunch */);
logExit(EXIT_REASON_UNKNOWN);
}