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

Commit 7ade0ddd authored by Justin Weir's avatar Justin Weir Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE" into tm-qpr-dev

parents 4922540a 0553824a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1290,8 +1290,10 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
    }

    private void onVerticalChanged(boolean isVertical) {
        mCentralSurfacesOptionalLazy.get().ifPresent(statusBar ->
                statusBar.getNotificationPanelViewController().setQsScrimEnabled(!isVertical));
        Optional<CentralSurfaces> cs = mCentralSurfacesOptionalLazy.get();
        if (cs.isPresent() && cs.get().getNotificationPanelViewController() != null) {
            cs.get().getNotificationPanelViewController().setQsScrimEnabled(!isVertical);
        }
    }

    private boolean onNavigationTouch(View v, MotionEvent event) {