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

Commit 228e7e50 authored by Chris Li's avatar Chris Li
Browse files

Polish ActivityEmbedding Shell animation when open a split pair

Before, we are checking TransitionInfo.isIndependent, which is true when
the parent is TRANSIT_CHANGE. However, we already animate the change
parent here, so we should skip the child for such case.

Bug: 207070762
Test: manually verify the animation
Change-Id: I3d1342ef27c97b2c8bb7270975f1f089c4462d5b
parent 1d073c96
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -276,7 +276,8 @@ class ActivityEmbeddingAnimationRunner {
            }

            final Animation animation;
            if (!TransitionInfo.isIndependent(change, info)) {
            if (change.getParent() != null
                    && handledChanges.contains(info.getChange(change.getParent()))) {
                // No-op if it will be covered by the changing parent window.
                animation = ActivityEmbeddingAnimationSpec.createNoopAnimation(change);
            } else if (Transitions.isClosingType(change.getMode())) {