Workaround for the case when task is letterboxed
There's a regression to make the task leash letterboxed in PIP animation
when enable_letterbox_translucent_activity is enabled even if the
activity matches parent.
This CL wordarounds to avoid overridding animation bounds if the task
is in size compat or letterboxed.
See b/376200414#comment6 to know how the transitions look like.
Bug: 376200414
Test: manual - 1. make activity to PIP mode
2. rotate the device
3. restore the activity from PIP
Test: atest PipAnimationControllerTest -j
Flag: com.android.window.flags.better_support_non_match_parent_activity
Change-Id: I92f1bca121a574c07cdd4c1ebdf4b0e474a90c40
2 files changed