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

Commit 9360a40e authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Only set edge extension if no animation offset is set." into main

parents 33c3a30b 2c0c5382
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -573,12 +573,6 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
                backgroundColorForTransition = getTransitionBackgroundColorIfSet(change, a,
                        backgroundColorForTransition);

                if (!isTask && a.getExtensionEdges() != 0x0) {
                    startTransaction.setEdgeExtensionEffect(
                            change.getLeash(), a.getExtensionEdges());
                    finishTransaction.setEdgeExtensionEffect(change.getLeash(), /* edge */ 0);
                }

                final Rect clipRect = TransitionUtil.isClosingType(mode)
                        ? new Rect(mRotator.getEndBoundsInStartRotation(change))
                        : new Rect(change.getEndAbsBounds());
@@ -597,6 +591,12 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
                    animRelOffset.x = Math.max(animRelOffset.x, change.getEndRelOffset().x);
                    animRelOffset.y = Math.max(animRelOffset.y, change.getEndRelOffset().y);
                }
                if (!isTask && a.getExtensionEdges() != 0x0
                        && animRelOffset.x == 0 && animRelOffset.y == 0) {
                    startTransaction.setEdgeExtensionEffect(
                            change.getLeash(), a.getExtensionEdges());
                    finishTransaction.setEdgeExtensionEffect(change.getLeash(), /* edge */ 0);
                }

                if (isActivity && !isActivityLevel
                        && !mRotator.isRotated(change)) {