Merge "Polish ActivityEmbedding Shell animation when open a split pair" into tm-qpr-dev

This commit is contained in:
Chris Li
2022-09-23 05:31:41 +00:00
committed by Android (Google) Code Review

View File

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