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

Commit 6a1df833 authored by Shawn Lee's avatar Shawn Lee
Browse files

Prevent NPE in NPVC when accessing HeadsUpAppearanceController

Bug: 280700007
Test: N/A
Change-Id: I6270c96b8585c429f9b63b56af0304cd5e794f6f
parent eb6d0c35
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4373,7 +4373,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump

                @Override
                public boolean shouldHeadsUpBeVisible() {
                    return mHeadsUpAppearanceController.shouldBeVisible();
                    return mHeadsUpAppearanceController != null &&
                            mHeadsUpAppearanceController.shouldBeVisible();
                }

                @Override