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

Commit 6a5c4a62 authored by Jainam Shah's avatar Jainam Shah
Browse files

Fix crash due to missing CentralSurfaces

mCentralSurfacesOptionalLazy is null for Automotive which results in a
crash.

Bug: 271167875
Bug: 271166940
Test: manual
Change-Id: I14a93a68f8fdf500e1ad23437bdb801ac3da673f
parent c143f762
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -631,7 +631,9 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
        final NavigationBarView navBarView =
                mNavBarControllerLazy.get().getNavigationBarView(mContext.getDisplayId());
        final NotificationPanelViewController panelController =
                mCentralSurfacesOptionalLazy.get().get().getNotificationPanelViewController();
                mCentralSurfacesOptionalLazy.get()
                        .map(CentralSurfaces::getNotificationPanelViewController)
                        .orElse(null);
        if (SysUiState.DEBUG) {
            Log.d(TAG_OPS, "Updating sysui state flags: navBarFragment=" + navBarFragment
                    + " navBarView=" + navBarView + " panelController=" + panelController);