Calculate StatusBar height locally in Launcher
When reading the status bar inset on devices with multiple displays after switching the displays the inset is not updated immediately (SystemUI should update the height of the window first by reacting to the display switch in it's own process). Due to this race condition Launcher is very likely to calculate DeviceProfile with incorrect inset of the previous display first and update it to the correct one only after SystemUI finished the window update. To avoid this adding calculation of the StatusBar height to Launcher locally using the same utility method that is used by SystemUI. Bug: 264656380 Test: manual test that the statusbar height is calculated correctly in Launcher on a device with two displays, both on the inner and outer display and different rotations Change-Id: Ia16ecadd8fcac29082d27ca693ab7740ce6161c4
Loading
Please register or sign in to comment