commit | 8a672e15cc95528d70e60fd3a598edc962b0ff9c | [log] [tgz] |
---|---|---|
author | Evan Rosky <erosky@google.com> | Thu Jun 10 14:54:12 2021 -0700 |
committer | Evan Rosky <erosky@google.com> | Thu Jun 10 14:54:12 2021 -0700 |
tree | c9073d03b629d6db84442c32431145d4c8aa1889 | |
parent | a2f87bef6ec250c14e09f078b274e0bc89369384 [diff] |
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
diff --git a/quickstep/src/com/android/launcher3/WrappedLauncherAnimationRunner.java b/quickstep/src/com/android/launcher3/WrappedLauncherAnimationRunner.java index e319275..fcf9857 100644 --- a/quickstep/src/com/android/launcher3/WrappedLauncherAnimationRunner.java +++ b/quickstep/src/com/android/launcher3/WrappedLauncherAnimationRunner.java
@@ -58,6 +58,8 @@ if (animationRunnerImpl != null) { animationRunnerImpl.onCreateAnimation(transit, appTargets, wallpaperTargets, nonAppTargets, result); + } else { + result.setAnimation(null, null); } } }