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

Commit a59d1b8e authored by Shawn Lee's avatar Shawn Lee Committed by Android (Google) Code Review
Browse files

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

parents 23cdcba7 ce8997fc
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -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();