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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user