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:
Louis Chang
2023-03-24 04:33:33 +00:00
parent dc8992c4b0
commit e544ddd0e0
2 changed files with 2 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -224,7 +224,7 @@ class ActivityEmbeddingAnimationRunner {
openingWholeScreenBounds.union(change.getEndAbsBounds());
} else {
closingChanges.add(change);
closingWholeScreenBounds.union(change.getStartAbsBounds());
closingWholeScreenBounds.union(change.getEndAbsBounds());
}
}