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

Commit 0e7f7b38 authored by Erik Wolsheimer's avatar Erik Wolsheimer
Browse files

Prevent NPE at TaskStack#resetAnimationBackgroundAnimator

Bug: 67034123
Change-Id: Ie1c7d8371d146006bc98f3a1ccc25292771ae3f9
(cherry picked from commit 70f5a4a3e807bfe30cd88431207774b23369075c)
parent f189de75
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -923,8 +923,10 @@ public class TaskStack extends WindowContainer<Task> implements DimLayer.DimLaye

    void resetAnimationBackgroundAnimator() {
        mAnimationBackgroundAnimator = null;
        if (mAnimationBackgroundSurface != null) {
            mAnimationBackgroundSurface.hide();
        }
    }

    void setAnimationBackground(WindowStateAnimator winAnimator, int color) {
        int animLayer = winAnimator.mAnimLayer;