Merge "Add a null check to prevent NPE when status bar isn't inflated" into udc-dev

This commit is contained in:
Shawn Lee
2023-05-08 17:08:35 +00:00
committed by Android (Google) Code Review

View File

@@ -205,8 +205,11 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
// TODO move this logic to message queue // TODO move this logic to message queue
mCentralSurfacesOptionalLazy.get().ifPresent(centralSurfaces -> { mCentralSurfacesOptionalLazy.get().ifPresent(centralSurfaces -> {
if (event.getActionMasked() == ACTION_DOWN) { if (event.getActionMasked() == ACTION_DOWN) {
centralSurfaces.getShadeViewController() ShadeViewController shadeViewController =
.startExpandLatencyTracking(); centralSurfaces.getShadeViewController();
if (shadeViewController != null) {
shadeViewController.startExpandLatencyTracking();
}
} }
mHandler.post(() -> { mHandler.post(() -> {
int action = event.getActionMasked(); int action = event.getActionMasked();