From fae9ea1e788bdfaa1b1f5ed7511d9770416f9525 Mon Sep 17 00:00:00 2001 From: Haoyu Zhang Date: Wed, 29 Mar 2023 12:06:55 -0700 Subject: [PATCH] Fix InputConnection#requestCursorUpdates documentation Update the InputConnection#requestCurosrUpdates doc to include the newly introduced CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS and CURSOR_UPDATE_FILTER_TEXT_APPEARANCE Bug: 253006511 Test: N/A Change-Id: I5121a8f8b2a22ac6755950fb5176d1169aec6fc1 --- .../java/android/view/inputmethod/InputConnection.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/java/android/view/inputmethod/InputConnection.java b/core/java/android/view/inputmethod/InputConnection.java index 687253683dcec..1840bcb358a0d 100644 --- a/core/java/android/view/inputmethod/InputConnection.java +++ b/core/java/android/view/inputmethod/InputConnection.java @@ -1217,9 +1217,11 @@ public interface InputConnection { * notify cursor/anchor locations. * * @param cursorUpdateMode any combination of update modes and filters: - * {@link #CURSOR_UPDATE_IMMEDIATE}, {@link #CURSOR_UPDATE_MONITOR}, and date filters: + * {@link #CURSOR_UPDATE_IMMEDIATE}, {@link #CURSOR_UPDATE_MONITOR}, and data filters: * {@link #CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS}, {@link #CURSOR_UPDATE_FILTER_EDITOR_BOUNDS}, - * {@link #CURSOR_UPDATE_FILTER_INSERTION_MARKER}. + * {@link #CURSOR_UPDATE_FILTER_INSERTION_MARKER}, + * {@link #CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS}, + * {@link #CURSOR_UPDATE_FILTER_TEXT_APPEARANCE}. * Pass {@code 0} to disable them. However, if an unknown flag is provided, request will be * rejected and method will return {@code false}. * @return {@code true} if the request is scheduled. {@code false} to indicate that when the @@ -1240,7 +1242,9 @@ public interface InputConnection { * {@link #CURSOR_UPDATE_IMMEDIATE}, {@link #CURSOR_UPDATE_MONITOR} * @param cursorUpdateFilter any combination of data filters: * {@link #CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS}, {@link #CURSOR_UPDATE_FILTER_EDITOR_BOUNDS}, - * {@link #CURSOR_UPDATE_FILTER_INSERTION_MARKER}. + * {@link #CURSOR_UPDATE_FILTER_INSERTION_MARKER}, + * {@link #CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS}, + * {@link #CURSOR_UPDATE_FILTER_TEXT_APPEARANCE}. * *

Pass {@code 0} to disable them. However, if an unknown flag is provided, request will be * rejected and method will return {@code false}.