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

Skip to content
Commit c325dedc authored by Nick Chameyev's avatar Nick Chameyev
Browse files

Initialize DisplayUpdater with the initial display info

DisplayManager#getNonOverrideDisplayInfo might not
set DisplayInfo values if the display doest not exist.
This causes problems when mDisplayInfo in DisplayUpdater
was never updated as it will emit empty DisplayInfo
if we call updateDisplayInfo when the display is
already removed.

The difference with the previous behavior is that
we initialized mDisplayInfo with initial values in
constructor of DisplayContent, so when we request
an update when the display is removed it would use
the old values to perform the update instead of
using 'empty' values.

Bug: 313307263
Test: manual fold/unfold, presubmit
Test: abtd run of CtsDisplayTestCases
Flag: none
Change-Id: I6b09e00b3d7d0fabb45b4df8f747fa5f62b6342d
parent 0d0ce5f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment