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

Commit b420e7d7 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Check whether StatusBar is initialized in ScreenOffAnimationController.

Fixes: 191524967
Test: doesn't crash
Change-Id: I4d3ec7569251ad1a7e3e7d9148d406ba7949352c
parent bdd8ff3f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -172,7 +172,8 @@ class UnlockedScreenOffAnimationController @Inject constructor(
        // We currently draw both the light reveal scrim, and the AOD UI, in the shade. If it's
        // already expanded and showing notifications/QS, the animation looks really messy. For now,
        // disable it if the notification panel is expanded.
        if (statusBar.notificationPanelViewController.isFullyExpanded) {
        if (!this::statusBar.isInitialized ||
                statusBar.notificationPanelViewController.isFullyExpanded) {
            return false
        }