Finish wrapped launcher animations if impl is gone

If the runner impl is gone (since it is a weakreference), we
still need to complete the animation contract by calling the
finish callback, so do that.

Bug: 183993924
Test: atest ActivityMetricsLoggerTests
Change-Id: Idce1859f0417cb74bbb9884e0d06750539e4545e
This commit is contained in:
Evan Rosky
2021-06-10 14:54:12 -07:00
parent a2f87bef6e
commit 8a672e15cc
@@ -58,6 +58,8 @@ public class WrappedLauncherAnimationRunner<R extends WrappedAnimationRunnerImpl
if (animationRunnerImpl != null) {
animationRunnerImpl.onCreateAnimation(transit, appTargets, wallpaperTargets,
nonAppTargets, result);
} else {
result.setAnimation(null, null);
}
}
}