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

Skip to content
Commit b0fe48ac authored by Ben Lin's avatar Ben Lin
Browse files

Restore PIP to non-fullscreen bounds if it was non-fullscreen.

For the situation where we make a new stack and reparent the PIP
activity, the new stack and its task's windowConfiguration is by default
fullscreen. When PipTaskOrganizer#onTaskAppear gets called, we save the
configuration bounds, which is still fullscreen, and then restore to
that. Instead if we set the bounds of the new stack to the bounds of the
original task, then PipTaskOrganizer would get the correct configuration
when its #onTaskAppeared method is called.

Bug: 162544217
Test: Open Amazon Prime Video in freeform, play a video, enter PIP,
expand PIP - back to non-fullscreen bounds

Change-Id: I2344f618e805b2362999f476c34d8a0be62ad561
parent d5bb2767
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