Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31de2d67 authored by Louis Chang's avatar Louis Chang
Browse files

Clear home surface crop size while being organized

Launcher has the surface size set as its display bounds before
entering split-screen. Since the crop size was not updated while
being organized, the surface was then cropped after rotation.

Bug: 152515401
Test: move app to split-screen-primary and rotate
Change-Id: I41237f21f188b0d2cf92c93873a3c76be3e4cb74
parent fa6a5048
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1100,6 +1100,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) {
+0 −3
Original line number Diff line number Diff line
@@ -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");