summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/shortcuts/DeepShortcutView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/shortcuts/DeepShortcutView.java')
-rw-r--r--src/com/android/launcher3/shortcuts/DeepShortcutView.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/launcher3/shortcuts/DeepShortcutView.java b/src/com/android/launcher3/shortcuts/DeepShortcutView.java
index f6fcdde2e..7cb2d43d7 100644
--- a/src/com/android/launcher3/shortcuts/DeepShortcutView.java
+++ b/src/com/android/launcher3/shortcuts/DeepShortcutView.java
@@ -89,11 +89,8 @@ public class DeepShortcutView extends FrameLayout {
/**
* Creates an animator to play when the shortcut container is being opened.
- *
- * @param animationIndex The index at which this animation will be started
- * relative to other DeepShortcutView open animations.
*/
- public Animator createOpenAnimation(int animationIndex, boolean isContainerAboveIcon) {
+ public Animator createOpenAnimation(long animationDelay, boolean isContainerAboveIcon) {
final Resources res = getResources();
setVisibility(INVISIBLE);
@@ -119,8 +116,7 @@ public class DeepShortcutView extends FrameLayout {
.scaleX(1).scaleY(1);
openAnimation.playTogether(reveal, translationY, scale);
- openAnimation.setStartDelay(animationIndex * res.getInteger(
- R.integer.config_deepShortcutOpenStagger));
+ openAnimation.setStartDelay(animationDelay);
openAnimation.setDuration(res.getInteger(R.integer.config_deepShortcutOpenDuration));
openAnimation.setInterpolator(new DecelerateInterpolator());
return openAnimation;