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

Skip to content
Commit 00557fbf authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Ignore minWidth and minHeight for PiP if too large

PiP acknowledges the minWidth and minHeight app sets on their Activity.
When those dimensions are too large though, the PiP window would exceed
the display bounds.

Given PiP permits such override to allow a even smaller PiP size, we
address the issue by

- Ignore minWidth and minHeight if any one of them is larger than the
  default size
- Skip the check on WM core side when setting the bounds, if it's a
  pinned Task

Flag: EXEMPT bugfix
Bug: 394769616
Test: atest WMShellUnitTests:PipBoundsStateTest \
            WMShellUnitTests:PipTaskOrganizerTest \
            WMShellUnitTests:PipBoundsAlgorithmTest
Test: manual test with PoC app
Change-Id: I48e3b97851553fac0344d11644cc6722e3690336
parent 9456c277
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment