Shrink default launch bounds on small display
The current implementation doesn't allow changing the default
launch size when it doesn't fit the display. However, lots of apps
have important UI pieces on top or bottom, so having a window height
larger than the display height can degrade the usability of such
app a lot.
More and more laptops have horizentally longer displays these days,
so this problem is getting more common. I think any adjustment
will be small enough not to affect apps' layouts much. Also, this
logic cannot make the app smaller than the min sizes defined by
the system or apps.
Bug: 185427982
Test: atest WmTests:TaskLaunchParamsModifierTests
Change-Id: I53171bba183e5f00be3118d41c57731b5e3d5e19
3 files changed