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

This commit is contained in:
TreeHugger Robot 2020-05-07 00:14:15 +00:00 committed by Android (Google) Code Review
commit d13dd3bc44
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}