Merge "Clear home surface crop size while being organized" into rvc-dev am: 74e31b7c64

Change-Id: I2810752b4b4e69f91ea0d49dd734e0c5fa747875
This commit is contained in:
TreeHugger Robot
2020-03-31 01:27:40 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 3 deletions

View File

@@ -1091,6 +1091,7 @@ public class DividerView extends FrameLayout implements OnTouchListener,
t.setPosition(mTiles.mHomeAndRecentsSurfaces.get(i),
mTiles.mHomeBounds.left - otherTaskRect.left,
mTiles.mHomeBounds.top - otherTaskRect.top);
t.setWindowCrop(mTiles.mHomeAndRecentsSurfaces.get(i), null);
}
final SurfaceControl dividerCtrl = getWindowSurfaceControl();
if (dividerCtrl != null) {

View File

@@ -241,9 +241,6 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub
+ " multi-window mode... newParent=" + newParent + " task=" + task);
return 0;
} else {
// Clear the window crop on root task since it may not be updated after
// reparent (no longer be a root task)
task.getSurfaceControl().setWindowCrop(null);
task.reparent((ActivityStack) newParent,
hop.getToTop() ? POSITION_TOP : POSITION_BOTTOM,
false /*moveParents*/, "sanitizeAndApplyHierarchyOp");