Fix status bar window height not being updated on certain rotations
This was causing status bar icons being truncated.
Certain rotation events don't trigger an application wide configuration
change event. An example is when going from portrait to upside down, or
when going from landscape to seascape.
It triggers a configuration change on the PhoneStatusBarView though.
The status bar window height was being updated on application level
configuration changes. For that reason it was not being updated always.
The fix is to update the height based on configuration change events
from the PhoneStatusBarView instead of the application.
Test: PhoneStatusBarViewTest.kt
Test: CentralSurfacesImplTest.java
Test: Manually
Fixes: 323299264
Flag: ACONFIG com.android.systemui.truncated_status_bar_icons_fix DISABLED
Change-Id: I37dd1b6b446b6975a8aa6ba8d597cd95a990f74c
6 files changed