Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5aabbacf authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android Build Coastguard Worker
Browse files

Use launcher app bounds to reset PiP icon overlay

Use PipTaskOrganizer#stopSwipePipToHome() to cache
the app bounds by launcher in Shell's PiP component.
These can later be used to properly calculate the overlay size
to reset its scale and offset properly in
PipTransition#onFinishResize().

This makes sure the icon overlay is properly set for cases such as
fixed rotation and swipe to PiP with pinned taskbar.

Also make sure the app bounds are correct
for button navigation enter pip flow by setting them in
PipTransition#startEnterAnimation().

Recording following repro steps with this fix applied:
http://recall/-/da2uuq57YtQRpR4N9NryZR
The bug report contains recording for before this fix.

Bug: 316993346
Test: manually enter PiP w/ fixed rotation at 90 and 270 deg
Test: manually enter PiP w/ pinned task bar on large screens
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b8041b1b95d1663b6f7801f1b92ef7ec67ebada5)
Merged-In: Iff392b6c8d6a3268e13e05d7cc0107218255e400
Change-Id: Iff392b6c8d6a3268e13e05d7cc0107218255e400
parent a2be7aa2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment