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

Commit f80d4209 authored by Garfield Tan's avatar Garfield Tan
Browse files

Fix a bug.

We should initialize mAnimationBackgroundSurface when it's null.
Otherwise it would be always null.

Bug: 118764615
Test: Presubmit tests.
Change-Id: Ia4a82195d747a4b4e7f1df176fc8ceb628276eaf
parent 4548699c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -809,7 +809,7 @@ public class TaskStack extends WindowContainer<Task> implements
            updateBoundsForDisplayChanges();
        }

        if (mAnimationBackgroundSurface != null) {
        if (mAnimationBackgroundSurface == null) {
            mAnimationBackgroundSurface = makeChildSurface(null).setColorLayer(true)
                    .setName("animation background stackId=" + mStackId)
                    .build();