From afe846d87973cd6886e8273c207359724bd6c552 Mon Sep 17 00:00:00 2001 From: Paul Sowden Date: Thu, 31 Oct 2019 11:01:56 -0700 Subject: [PATCH] Add additional javadoc for listener parameter. Test: make -j20 docs Change-Id: I6f8c30014c63bc41609b9a683c2ddd5de48eb713 --- core/java/android/view/GestureDetector.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/java/android/view/GestureDetector.java b/core/java/android/view/GestureDetector.java index 8fbbcf4b88c6a..d59ee92dba7ed 100644 --- a/core/java/android/view/GestureDetector.java +++ b/core/java/android/view/GestureDetector.java @@ -145,7 +145,7 @@ public class GestureDetector { boolean onSingleTapConfirmed(MotionEvent e); /** - * Notified when a double-tap occurs. + * Notified when a double-tap occurs. Triggered on the down event of second tap. * * @param e The down motion event of the first tap of the double-tap. * @return true if the event is consumed, else false @@ -378,7 +378,9 @@ public class GestureDetector { * * @param context the application's context * @param listener the listener invoked for all the callbacks, this must - * not be null. + * not be null. If the listener implements the {@link OnDoubleTapListener} or + * {@link OnContextClickListener} then it will also be set as the listener for + * these callbacks (for example when using the {@link SimpleOnGestureListener}). * * @throws NullPointerException if {@code listener} is null. */ @@ -393,7 +395,9 @@ public class GestureDetector { * * @param context the application's context * @param listener the listener invoked for all the callbacks, this must - * not be null. + * not be null. If the listener implements the {@link OnDoubleTapListener} or + * {@link OnContextClickListener} then it will also be set as the listener for + * these callbacks (for example when using the {@link SimpleOnGestureListener}). * @param handler the handler to use for running deferred listener events. * * @throws NullPointerException if {@code listener} is null.