diff options
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/src/com/android/quickstep/views/RecentsView.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 077069679..f3dec9a81 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1270,11 +1270,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl int otherAdjacentTaskIndex = centerTaskIndex + (centerTaskIndex - taskIndex); if (otherAdjacentTaskIndex >= 0 && otherAdjacentTaskIndex < getPageCount()) { - anim.play(ObjectAnimator.ofPropertyValuesHolder(getPageAt(otherAdjacentTaskIndex), - new PropertyListBuilder() - .translationX(mIsRtl ? -displacementX : displacementX) - .scale(1) - .build())); + anim.play(new PropertyListBuilder() + .translationX(mIsRtl ? -displacementX : displacementX) + .scale(1) + .build(getPageAt(otherAdjacentTaskIndex))); } } return anim; @@ -1283,11 +1282,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl private Animator createAnimForChild(TaskView child, float[] toScaleAndTranslation) { AnimatorSet anim = new AnimatorSet(); anim.play(ObjectAnimator.ofFloat(child, TaskView.ZOOM_SCALE, toScaleAndTranslation[0])); - anim.play(ObjectAnimator.ofPropertyValuesHolder(child, - new PropertyListBuilder() - .translationX(toScaleAndTranslation[1]) - .translationY(toScaleAndTranslation[2]) - .build())); + anim.play(new PropertyListBuilder() + .translationX(toScaleAndTranslation[1]) + .translationY(toScaleAndTranslation[2]) + .build(child)); return anim; } |