Fix layout been truncated after activated split screen

Stop cropping root surfaces when dismissing split screen, so the next
time entering split screen won't apply remaining crop setup
unexpectedly.

Fix: 202368189
Fix: 202358094
Test: atest WMShellUnitTests
Change-Id: Idf079b6cb04f1ced1d7cdf166fe54309dd64f163
This commit is contained in:
Jerry Chang
2021-10-07 19:37:51 +08:00
parent ef4d26ab45
commit bb7abee972

View File

@@ -515,6 +515,9 @@ class StageCoordinator implements SplitLayout.SplitLayoutHandler,
mSideStage.removeAllTasks(wct, childrenToTop == mSideStage);
mMainStage.deactivate(wct, childrenToTop == mMainStage);
mTaskOrganizer.applyTransaction(wct);
mSyncQueue.runInSync(t -> t
.setWindowCrop(mMainStage.mRootLeash, null)
.setWindowCrop(mSideStage.mRootLeash, null));
// Hide divider and reset its position.
setDividerVisibility(false);
mSplitLayout.resetDividerPosition();