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
Loading
Please register or sign in to comment