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

Commit a864f959 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

Merge "Clear child task crop in split so it matches parent crop"

parents 7e83ac43 b5c162bd
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -205,12 +205,9 @@ class SplitScreenTaskListener implements ShellTaskOrganizer.TaskListener {

    private void updateChildTaskSurface(
            RunningTaskInfo taskInfo, SurfaceControl leash, boolean firstAppeared) {
        final Rect taskBounds = taskInfo.getConfiguration().windowConfiguration.getBounds();
        final Point taskPositionInParent = taskInfo.positionInParent;
        final Rect corp =  new Rect(taskBounds);
        corp.offset(-taskBounds.left, -taskBounds.top);
        mSyncQueue.runInSync(t -> {
            t.setWindowCrop(leash, corp);
            t.setWindowCrop(leash, null);
            t.setPosition(leash, taskPositionInParent.x, taskPositionInParent.y);
            if (firstAppeared && !Transitions.ENABLE_SHELL_TRANSITIONS) {
                t.setAlpha(leash, 1f);