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:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user