Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28270e75 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

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
parent caf1a88a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment