Calculate launched overlay bounds by calculator
Before, we pass Activity to OverlayCreateParams to calculate
overlay bounds, but it may lead to memory leak
since OverlayCreateParams stores Activity as a property.
This CL changes to calculate overlay bounds by
ActivityStackAttributesCalculator. When there's an overlay
container to be launched, calculator will be triggered,
and pass ParentContainerInfo based on launching Activity
for the overlay bounds calculation.
Bug: 243518738
Test: OverlayPresentationTest
Change-Id: I113b6a31e175b0396f490075546449a9205bcb7e
6 files changed