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

Skip to content
Commit d57efdf2 authored by Chris Göllner's avatar Chris Göllner
Browse files

DisplayRepository: tweak to implementation of displayAdditionEvent

- Change it so that it only emits after `displays` has emitted. This
  guarantees that calls to `getDisplay` with the newly added display id
  will always be non-null.
- This also allows us to reuse an existing `Display` instance, without
  having to do another call to `DisplayManager`

Test: DisplayRepositoryTest
Bug: 367592591
Flag: EXEMPT small implementation tweak covered with tests
Change-Id: Ic5d6f877d8ab77f13e239632f6dee1deecdf97eb
parent 92be35f8
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