Make sure display config is updated when cutout is changed
1. LocalDisplayAdapter.LocalDisplayDevice#updateDeviceInfoLocked posts to display thread when receiving onOverlayChanged. So the operation depends on it should run sequentially. 2. After updating latest display info, the cutout may affect the height of status bar, then it still needs to compute display config again after that for screenHeightDp. Bug: 222572231 Test: Toggle different types of cutout in developer options, Either: rotate the display, there won't be a blank area or switch to another activity, there won't have another display config change CONFIG_SCREEN_SIZE. Change-Id: I8bb53d846656c76666074c0dee0e3c1c8627e24b
Loading
Please register or sign in to comment