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

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

Merge "Skip setting the controller if the animation is already finished" into ub-launcher3-rvc-dev

parents 98a88e00 a4b11dd9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -71,6 +71,12 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
            @Override
            public void onRecentsAnimationStart(RecentsAnimationController controller,
                    RecentsAnimationTargets targets) {
                if (mCallbacks == null) {
                    // It's possible for the recents animation to have finished and be cleaned up
                    // by the time we process the start callback, and in that case, just we can skip
                    // handling this call entirely
                    return;
                }
                mController = controller;
                mTargets = targets;
            }