Provide a configuration controller for each display and use it for...
Provide a configuration controller for each display and use it for DisplayStateRepository (isWideScreen) DisplayStateRepositoryImpl was previously using display values, which caused flickers as the "OnDisplayChanged" event was being received a few frames after than expected (as it's received and propagated in the background). This resulted in a jump of shade window background when the window moved between displays. On the other hand, the new config change is guaranteed to be received at least before the frame that is expected to have the correct dimensions. Also, the class was getting the display info without checking which display changed. Now it's filtering by display id associated with the context. Now we're using ComponentCallbacks to reliably get the configuration change related to each display. Bug: 362719719 Bug: 417956803 Test: DisplayStateRepositoryImplTest, ConfigurationControllerDelegateTest Flag: com.android.systemui.shade_window_goes_around Change-Id: I2d6f651de3b1303088b95c56c19810fbdc503333
Loading
Please register or sign in to comment