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
This commit is contained in:
Chris Li
2022-09-21 15:19:33 +08:00
parent 1d073c9600
commit 228e7e502e

View File

@@ -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())) {