From 66a26003e8b01dce7346afdfed5e93887186179f Mon Sep 17 00:00:00 2001 From: Lais Andrade Date: Tue, 9 Mar 2021 00:09:51 +0000 Subject: [PATCH] Clarify delay parameter documentation in VibrationEffect Make it clear in the javadoc for addPrimitive method the start point of the delay parameter, which is right after the previous primitive in the composition has finished. Fix: 150715908 Test: N/A Change-Id: Ic88b0d8a31a193b8b1726a9541d9e5955b729866 --- core/java/android/os/VibrationEffect.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/os/VibrationEffect.java b/core/java/android/os/VibrationEffect.java index 769a34eed1dc8..13871c51afe2e 100644 --- a/core/java/android/os/VibrationEffect.java +++ b/core/java/android/os/VibrationEffect.java @@ -1083,7 +1083,8 @@ public abstract class VibrationEffect implements Parcelable { * * @param primitiveId The primitive to add * @param scale The scale to apply to the intensity of the primitive. - * @param delay The amount of time in milliseconds to wait before playing this primitive + * @param delay The amount of time in milliseconds to wait before playing this primitive, + * starting at the time the previous element in this composition is finished. * @return The {@link Composition} object to enable adding multiple primitives in one chain. */ @NonNull