diff options
| author | 2024-08-19 12:13:47 +0000 | |
|---|---|---|
| committer | 2024-08-19 12:13:47 +0000 | |
| commit | 45e587ad67e0076ee4be8d3a4b1037910cdb00b6 (patch) | |
| tree | f40f2b8c1850e9e9b93096786de49f5f053b4938 | |
| parent | e2459d14780b525c0922f51e3a3e90697ebc5a8f (diff) | |
| parent | ef2efcc5e7aac45da5d51fd5f74cb24ae2be77d0 (diff) | |
Merge "Fixing documentation of InputConnection#commitText" into main
| -rw-r--r-- | core/java/android/view/inputmethod/InputConnection.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/view/inputmethod/InputConnection.java b/core/java/android/view/inputmethod/InputConnection.java index 1840bcb358a0..4742f1ed8219 100644 --- a/core/java/android/view/inputmethod/InputConnection.java +++ b/core/java/android/view/inputmethod/InputConnection.java @@ -625,8 +625,7 @@ public interface InputConnection { * the text you are providing so it is not possible to correctly * specify locations there. * @param textAttribute The extra information about the text. - * @return true on success, false if the input connection is no longer - * + * @return true on success, false if the input connection is no longer valid. */ default boolean setComposingText(@NonNull CharSequence text, int newCursorPosition, @Nullable TextAttribute textAttribute) { @@ -753,7 +752,7 @@ public interface InputConnection { * you are providing so it is not possible to correctly specify * locations there. * @param textAttribute The extra information about the text. - * @return true on success, false if the input connection is no longer + * @return true on success, false if the input connection is no longer valid. */ default boolean commitText(@NonNull CharSequence text, int newCursorPosition, @Nullable TextAttribute textAttribute) { |