Loading
Get the latest display info for overlay change
LocalDisplayAdapter.LocalDisplayDevice#updateDeviceInfoLocked posts to display thread when receiving onOverlayChanged. So the operation depends on it should run sequentially. This partial relands commit 08a30491 to make sure that the display info can include the latest cutout info after changing the cutout overlay resources. The reconfigureDisplayLocked in previous commit is not called in this change because that will require to fix configuration calculation according to decor windows that provide display config related insets. Bug: 222572231 Bug: 240961743 Test: Toggle different types of cutout in developer options, the cutout change should be applied immediately on screen. Change-Id: I393c7b2c2e95eabc21123b7c95c760323a5386ec