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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user