From f0b6e4352987c4b631c9f6e842f9fa79d04a48a6 Mon Sep 17 00:00:00 2001 From: Yeabkal Wubshit Date: Mon, 27 Feb 2023 22:10:48 +0000 Subject: [PATCH] nit: Update VelocityTracker Javadoc We have added APIs to query velocity for axes beyond X/Y, so let the VelocityTracker class' Javadoc reflect this capability. Bug: 271009383 Test: N/A Change-Id: I9ba2e40d9ec7e407013d67e9a9953ae8df44ec7e --- core/java/android/view/VelocityTracker.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/java/android/view/VelocityTracker.java b/core/java/android/view/VelocityTracker.java index 85aea85907b5e..4a7ed644f9e2a 100644 --- a/core/java/android/view/VelocityTracker.java +++ b/core/java/android/view/VelocityTracker.java @@ -32,9 +32,10 @@ import java.util.Map; * * Use {@link #obtain} to retrieve a new instance of the class when you are going * to begin tracking. Put the motion events you receive into it with - * {@link #addMovement(MotionEvent)}. When you want to determine the velocity call - * {@link #computeCurrentVelocity(int)} and then call {@link #getXVelocity(int)} - * and {@link #getYVelocity(int)} to retrieve the velocity for each pointer id. + * {@link #addMovement(MotionEvent)}. When you want to determine the velocity, call + * {@link #computeCurrentVelocity(int)} and then call the velocity-getter methods like + * {@link #getXVelocity(int)}, {@link #getYVelocity(int)}, or {@link #getAxisVelocity(int, int)} + * to retrieve velocity for different axes and/or pointer IDs. */ public final class VelocityTracker { private static final SynchronizedPool sPool =