Include the end bounds in the whole screen bounds
The end bounds was not included in the whole screen bounds
in commit b4478c5. Restore the change.
Bug: 267044260
Test: steps on the bug
Change-Id: I40991cd4c64312f07676c86293f8fe0f41e9adb8
This commit is contained in:
@@ -214,6 +214,7 @@ class TaskFragmentAnimationRunner extends IRemoteAnimationRunner.Stub {
|
||||
openingWholeScreenBounds.union(target.screenSpaceBounds);
|
||||
} else {
|
||||
closingTargets.add(target);
|
||||
closingWholeScreenBounds.union(target.screenSpaceBounds);
|
||||
// Union the start bounds since this may be the ClosingChanging animation.
|
||||
closingWholeScreenBounds.union(target.startBounds);
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ class ActivityEmbeddingAnimationRunner {
|
||||
openingWholeScreenBounds.union(change.getEndAbsBounds());
|
||||
} else {
|
||||
closingChanges.add(change);
|
||||
closingWholeScreenBounds.union(change.getStartAbsBounds());
|
||||
closingWholeScreenBounds.union(change.getEndAbsBounds());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user