Introduce a private flag to extend frame with cutout
This patch introduced a new private flag PRIVATE_FLAG_LAYOUT_SIZE_EXTENDED_TO_CUTOUT to let the window extend it's requested window frame to contain the display cutout frame. This is useful for the case of navigation bar. Without it, the navigation bar may not have enough space to layout it's content when it's on the same side as the display cutout. With the flag set, the Navigation bar will have the requested size plus the navigation bar size as its frame. Bug: 203031262 Bug: 161689946 Test: See reproduce steps in b/203031262 Test: atest WindowLayoutTests Change-Id: Id1d6f09dc421b5f25e16e4aca6282b6deec2e8c4
Loading
Please register or sign in to comment