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

Commit ad905dd7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE" into main

parents ec43e676 b9f5e28e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2251,7 +2251,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
    }

    private boolean isPanelVisibleBecauseOfHeadsUp() {
        boolean headsUpVisible = mHeadsUpManager.hasPinnedHeadsUp() || mHeadsUpAnimatingAway;
        boolean headsUpVisible = (mHeadsUpManager != null && mHeadsUpManager.hasPinnedHeadsUp())
                || mHeadsUpAnimatingAway;
        return headsUpVisible && mBarState == StatusBarState.SHADE;
    }