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

Commit 3765b337 authored by Tony Huang's avatar Tony Huang Committed by Android (Google) Code Review
Browse files

Merge "Prevent set bounds to child task"

parents 9088c2fe 1f3781ff
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -346,6 +346,15 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
            }

            if (change.getMode() == TRANSIT_CHANGE) {
                // If task is child task, only set position in parent.
                if (isTask && change.getParent() != null
                        && info.getChange(change.getParent()).getTaskInfo() != null) {
                    final Point positionInParent = change.getTaskInfo().positionInParent;
                    startTransaction.setPosition(change.getLeash(),
                            positionInParent.x, positionInParent.y);
                    continue;
                }

                // No default animation for this, so just update bounds/position.
                startTransaction.setPosition(change.getLeash(),
                        change.getEndAbsBounds().left - change.getEndRelOffset().x,