summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Tiger Huang <tigerhuang@google.com> 2022-03-15 21:36:50 +0800
committer Tiger Huang <tigerhuang@google.com> 2022-03-17 00:58:29 +0800
commitfa1ec597caba6332eb36ccbe175166dee552df2f (patch)
tree780b8624d47196ad89a735ae81e0b942fbda2c84 /libs/androidfw/StringPool.cpp
parent54102c21f22fce1729133719d4b83d9ae14bcdcf (diff)
Refine PRIVATE_FLAG_LAYOUT_SIZE_EXTENDED_BY_CUTOUT
- If a window has PRIVATE_FLAG_LAYOUT_SIZE_EXTENDED_BY_CUTOUT, the final frame might be larger than the requested size, and we cannot use the requested lengths to compute the window frame. Because the window size will be the new requested size, we don't want to extend the window size again and again. - When we are checking if a frame is overlapped with the display cutout, we only need to check if displayCutoutSafe contains the frame. We don't need to check individual bounding rectangles. This also fixes an issue that the gestural navigation bar is not extended by the waterfall cutout because it doesn't have bounding rectangles. Bug: 203031262 Bug: 161810301 Test: Enable double cutout or waterfall cutout in developer options and see if the frame of navigation bar is correct when it is at the same side of the cutout. Change-Id: Ic8c090198c556f2dc3b2c0b8498c42e9ca18c795
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions