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

Commit cbf94cb4 authored by Justin Weir's avatar Justin Weir Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE" into tm-qpr-dev am: 7ade0ddd

parents 6902391c 7ade0ddd
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) {