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

Commit a47a8f1b authored by Tony Wickham's avatar Tony Wickham
Browse files

Fix NPE when recents animation controller is null

If it's null, that means the animation was already canceled or
finished, so we don't need to finish it anyway.

Bug: 157383670
Change-Id: I9b0dde76d5756536d8d97bc3d7f13723f903a79c
parent 517cec53
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -246,8 +246,10 @@ public abstract class BaseSwipeUpHandler<T extends StatefulActivity<?>, Q extend
    protected void onRestartLastAppearedTask() {
        // Finish the controller here, since we won't get onTaskAppeared() for a task that already
        // appeared.
        if (mRecentsAnimationController != null) {
            mRecentsAnimationController.finish(false, null);
        }
    }

    /**
     * Runs the given {@param action} if the recents animation has already started, or queues it to