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

Commit 8e3fdeec authored by Nicolò Mazzucato's avatar Nicolò Mazzucato
Browse files

Register DarkIconDispatcherImpl as LifecycleListener

This change ensures that DarkIconDispatcherImpl, which manages the dark mode state for status bar icons, is properly registered as a LifecycleListener within the PerDisplaySystemUIModule.

This fix a crash when at boot the displays with screen decorations were all the connected ones (even if not enabled yet), then the external ones were removed, and when enabled by the user were added again (but the DarkIconDispatcherImpl was already registered, causing a crash)

Bug: 440321599
Test: Reboot device with external display connected, and press "desktop" in the dialog soon after reboot -> observe no crash
Flag: NONE - small bugfix for a current crash
Change-Id: Ibfbdbb3ff802b6afa7ed8672d79069cfa2101167
parent 464c2d69
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