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

Commit 8f6c0753 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Return WindowInfosUpdate when registering infos listener

In this CL, we refactor WindowInfosListener to return a Result-wrapped
WindowInfosUpdate. This makes it more user-friendly.

As an alternative, we could further refactor this by never returning an
invalid WindowInfosUpdate - since failure to listen to windows would
mean that the device is not usable. To ensure that the initial info is
consumed, we could add a "no-discard" annotation to that function.

Bug: 404661556
Flag: EXEMPT refactor
Test: none
Change-Id: I16d13919e92aa4b3ee0ac5f6024c7552ebb0da49
parent c1ae85bc
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