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

Commit 2ae6ed53 authored by Phil Weaver's avatar Phil Weaver Committed by android-build-merger
Browse files

Merge "Clarify docs about event recycling." into nyc-dev

am: 10413819

* commit '10413819':
  Clarify docs about event recycling.
parents bbf6c611 10413819
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -406,7 +406,9 @@ public abstract class AccessibilityService extends Service {
    /**
     * Callback for {@link android.view.accessibility.AccessibilityEvent}s.
     *
     * @param event An event.
     * @param event The new event. This event is owned by the caller and cannot be used after
     * this method returns. Services wishing to use the event after this method returns should
     * make a copy.
     */
    public abstract void onAccessibilityEvent(AccessibilityEvent event);

@@ -493,7 +495,9 @@ public abstract class AccessibilityService extends Service {
     * functionality.
     * <p>
     *
     * @param event The event to be processed.
     * @param event The event to be processed. This event is owned by the caller and cannot be used
     * after this method returns. Services wishing to use the event after this method returns should
     * make a copy.
     * @return If true then the event will be consumed and not delivered to
     *         applications, otherwise it will be delivered as usual.
     */