diff options
| author | 2025-02-20 15:20:45 -0800 | |
|---|---|---|
| committer | 2025-02-21 15:41:22 -0800 | |
| commit | 00557fbfb3dd5abe6ef0a24b5640117e051bb39c (patch) | |
| tree | fc3ef8582ebe94437a63ab211fd56d4cc31c5905 /libs/androidfw/misc.cpp | |
| parent | 9456c277e22d8310a5b9d1f34bca513809cb5322 (diff) | |
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
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions