summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-08-19 12:13:47 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-08-19 12:13:47 +0000
commit45e587ad67e0076ee4be8d3a4b1037910cdb00b6 (patch)
treef40f2b8c1850e9e9b93096786de49f5f053b4938
parente2459d14780b525c0922f51e3a3e90697ebc5a8f (diff)
parentef2efcc5e7aac45da5d51fd5f74cb24ae2be77d0 (diff)
Merge "Fixing documentation of InputConnection#commitText" into main
-rw-r--r--core/java/android/view/inputmethod/InputConnection.java5
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) {