Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c5fbb39 authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 3d1b3cb9: Merge "Add documentation to onTouchEvent for accessibility" into klp-dev

* commit '3d1b3cb9':
  Add documentation to onTouchEvent for accessibility
parents 3175f08e 3d1b3cb9
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -8419,6 +8419,17 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    /**
     * Implement this method to handle touch screen motion events.
     * <p>
     * If this method is used to detect click actions, it is recommended that
     * the actions be performed by implementing and calling
     * {@link #performClick()}. This will ensure consistent system behavior,
     * including:
     * <ul>
     * <li>obeying click sound preferences
     * <li>dispatching OnClickListener calls
     * <li>handling {@link AccessibilityNodeInfo#ACTION_CLICK ACTION_CLICK} when
     * accessibility features are enabled
     * </ul>
     *
     * @param event The motion event.
     * @return True if the event was handled, false otherwise.