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

Commit acfbce09 authored by Taran Singh's avatar Taran Singh
Browse files

Update stylus handwriting javadoc indicating usage of WeakReference in callback

Update stylus handwriting methods to reflect usage of WeakReference by
framework and app developer is encouraged to hold reference, if needed. The WekReference was originally added in [1].

[1]: I494c1b8fe5abf5f15e97884be5ef37783517ad40

Bug: 335731544
Test: build manually
Flag: EXEMPT javadoc update
Change-Id: Ia8ce5b6667017ac949ffd38b3551b71ab8c3025e
parent 479f2da7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2949,7 +2949,8 @@ public final class InputMethodManager {
     * @param callback Consumer callback that provides {@code true} if view belongs to allowed
     *                delegate package declared in
     *                {@link #prepareStylusHandwritingDelegation(View, String)} and handwriting
     *                session can start.
     *                session can start. Note: The caller should hold a reference to the callback.
     *                The framework only holds a weak reference.
     * @see #prepareStylusHandwritingDelegation(View, String)
     * @see #acceptStylusHandwritingDelegation(View)
     */
@@ -2979,7 +2980,8 @@ public final class InputMethodManager {
     * @param delegatorPackageName package name of the delegator that handled initial stylus stroke.
     * @param flags {@link #HANDWRITING_DELEGATE_FLAG_HOME_DELEGATOR_ALLOWED} or {@code 0}
     * @param executor The executor to run the callback on.
     * @param callback {@code true>} would be received if delegation was accepted.
     * @param callback {@code true} would be received if delegation was accepted. The caller should
     *                 hold a reference to the callback. The framework only holds a weak reference.
     * @see #prepareStylusHandwritingDelegation(View, String)
     * @see #acceptStylusHandwritingDelegation(View)
     */