Merge "Fix layout been truncated after activated split screen" into sc-v2-dev am: 93e22893e8 am: 16c7f6755b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16005847

Change-Id: I94e4ac0b16865979799be0287f1d0f0023ddca40
This commit is contained in:
TreeHugger Robot
2021-10-08 06:21:49 +00:00
committed by Automerger Merge Worker

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();