summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Shawn Lin <shawnlin@google.com> 2022-05-19 20:13:12 +0800
committer Shawn Lin <shawnlin@google.com> 2022-05-21 14:56:30 +0000
commit0f7cc0128b9cf341eb3e0e657d4e6a416440ee53 (patch)
tree23c5ab7ee506f288de602b91330c2c36e20d03b9 /libs/androidfw/AssetsProvider.cpp
parente651a60db45b2c62763cff0629becfd8ff8ec818 (diff)
Replace DisplayManager.getStableDisplaySize with max Display.Mode
The DisplayManager.getStableDisplaySize is not the right way to get the size we want for screen decorations and display team is going to get rid of it. Instead, we use the maximum display size supported by the display as the base size to define the cutout and rounded corner configs. Also fixed a bug that DisplayCutoutBaseView didn't update the shoudDrawCutout config when display change. Bug: 230227839 Test: 1. On foldable device, fold and unfold the device and check if the cutout is correctly drawn. 2. On device supporting multiple resolutions, switch resolution between FHD & QHD and check if the cutout is correctly drawn. Test: atest LocalDisplayAdapterTest DisplayCutoutTest ScreenDecorationsTest RoundedCornersTest DisplayCutoutBaseViewTest Change-Id: I7a602b5abd7d6a21d17eae4f8e99414eaf765fa5
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions