diff --git a/core/java/android/view/ViewPropertyAnimator.java b/core/java/android/view/ViewPropertyAnimator.java index d8db14ca28867..22f98b7fa301f 100644 --- a/core/java/android/view/ViewPropertyAnimator.java +++ b/core/java/android/view/ViewPropertyAnimator.java @@ -701,7 +701,7 @@ public class ViewPropertyAnimator { * view.animate().x(0); * } * }; - * view.animate().x(200).onEnd(endAction); + * view.animate().x(200).withEndAction(endAction); * * * @param runnable The action to run when the next animation ends.