diff options
author | Winson Chung <winsonc@google.com> | 2018-01-29 11:16:32 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2018-02-09 12:40:10 -0800 |
commit | 3e803c7a4bec4d14006057d918fe8663c7d36769 (patch) | |
tree | 722cfb15c4bf00dfd45f492d662f8b848ff3df5d /quickstep/src/com/android/launcher3/LauncherTransitionAnimator.java | |
parent | 7780fa7bc711afbf89fbdc6fe94b473f2e3db3f2 (diff) | |
download | android_packages_apps_Trebuchet-3e803c7a4bec4d14006057d918fe8663c7d36769.tar.gz android_packages_apps_Trebuchet-3e803c7a4bec4d14006057d918fe8663c7d36769.tar.bz2 android_packages_apps_Trebuchet-3e803c7a4bec4d14006057d918fe8663c7d36769.zip |
Animate the visible task view if launching an app that resolves to the task
Test: Manual, launch app for associated visible task
Change-Id: I7a56553197ad23e1269eb50523eca0ea88898f47
Diffstat (limited to 'quickstep/src/com/android/launcher3/LauncherTransitionAnimator.java')
-rw-r--r-- | quickstep/src/com/android/launcher3/LauncherTransitionAnimator.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/quickstep/src/com/android/launcher3/LauncherTransitionAnimator.java b/quickstep/src/com/android/launcher3/LauncherTransitionAnimator.java index 80eaef7e3..aec28697e 100644 --- a/quickstep/src/com/android/launcher3/LauncherTransitionAnimator.java +++ b/quickstep/src/com/android/launcher3/LauncherTransitionAnimator.java @@ -32,11 +32,15 @@ public class LauncherTransitionAnimator { private Animator mWindowAnimator; LauncherTransitionAnimator(Animator launcherAnimator, Animator windowAnimator) { - mLauncherAnimator = launcherAnimator; + if (launcherAnimator != null) { + mLauncherAnimator = launcherAnimator; + } mWindowAnimator = windowAnimator; mAnimatorSet = new AnimatorSet(); - mAnimatorSet.play(launcherAnimator); + if (launcherAnimator != null) { + mAnimatorSet.play(launcherAnimator); + } mAnimatorSet.play(windowAnimator); } @@ -53,6 +57,8 @@ public class LauncherTransitionAnimator { } public void finishLauncherAnimation() { - mLauncherAnimator.end(); + if (mLauncherAnimator != null) { + mLauncherAnimator.end(); + } } } |