diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-03-29 21:25:32 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-03-30 09:30:11 -0700 |
commit | 76e2775bb638757216fcaa96f8a62654fb56b19a (patch) | |
tree | abf9fac0263c75ac5ce9b1397f39b08479275f70 /src/com/android/launcher3/anim | |
parent | b80cb40ee17947f475f6a459635aae84e5a9575f (diff) | |
download | android_packages_apps_Trebuchet-76e2775bb638757216fcaa96f8a62654fb56b19a.tar.gz android_packages_apps_Trebuchet-76e2775bb638757216fcaa96f8a62654fb56b19a.tar.bz2 android_packages_apps_Trebuchet-76e2775bb638757216fcaa96f8a62654fb56b19a.zip |
Moving some methods related to task launch animation to
recents view and related classes.
This allows the common animation to be used in fallback activity.
Bug: 75979063
Change-Id: I2b5bf5e66406621305b9a076793434f9c5cecdfd
Diffstat (limited to 'src/com/android/launcher3/anim')
-rw-r--r-- | src/com/android/launcher3/anim/AnimatorPlaybackController.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/anim/AnimatorPlaybackController.java b/src/com/android/launcher3/anim/AnimatorPlaybackController.java index 6fea20156..087752df1 100644 --- a/src/com/android/launcher3/anim/AnimatorPlaybackController.java +++ b/src/com/android/launcher3/anim/AnimatorPlaybackController.java @@ -18,6 +18,7 @@ package com.android.launcher3.anim; import android.animation.Animator; import android.animation.Animator.AnimatorListener; import android.animation.AnimatorSet; +import android.animation.TimeInterpolator; import android.animation.ValueAnimator; import java.util.ArrayList; @@ -184,10 +185,14 @@ public abstract class AnimatorPlaybackController implements ValueAnimator.Animat private void getAnimationsRecur(AnimatorSet anim, ArrayList<ValueAnimator> out) { long forceDuration = anim.getDuration(); + TimeInterpolator forceInterpolator = anim.getInterpolator(); for (Animator child : anim.getChildAnimations()) { if (forceDuration > 0) { child.setDuration(forceDuration); } + if (forceInterpolator != null) { + child.setInterpolator(forceInterpolator); + } if (child instanceof ValueAnimator) { out.add((ValueAnimator) child); } else if (child instanceof AnimatorSet) { |