From 08811aeb330cfa3296622555cd675974dbffab41 Mon Sep 17 00:00:00 2001 From: Lan Wei Date: Wed, 19 Oct 2022 18:06:19 +0800 Subject: [PATCH] Fix javadoc for replaceText Bug: 254278543 Test: atest FrameworksCoreTests:BaseInputConnectionTest Test: atest CtsInputMethodTestCases:BaseInputConnectionTest Change-Id: I7429d2b77d9f45c99f0b76808271ba61ad1612ae --- .../inputmethodservice/IRemoteInputConnectionInvoker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/java/android/inputmethodservice/IRemoteInputConnectionInvoker.java b/core/java/android/inputmethodservice/IRemoteInputConnectionInvoker.java index 891da2466bffa..4f09beec81dda 100644 --- a/core/java/android/inputmethodservice/IRemoteInputConnectionInvoker.java +++ b/core/java/android/inputmethodservice/IRemoteInputConnectionInvoker.java @@ -777,7 +777,7 @@ final class IRemoteInputConnectionInvoker { } /** - * Invokes {@link IRemoteInputConnection#replaceText(InputConnectionCommandHeader, int, int, + * Invokes {@code IRemoteInputConnection#replaceText(InputConnectionCommandHeader, int, int, * CharSequence, TextAttribute)}. * * @param start the character index where the replacement should start. @@ -788,6 +788,8 @@ final class IRemoteInputConnectionInvoker { * that this means you can't position the cursor within the text. * @param text the text to replace. This may include styles. * @param textAttribute The extra information about the text. This value may be null. + * @return {@code true} if the invocation is completed without {@link RemoteException}, {@code + * false} otherwise. */ @AnyThread public boolean replaceText(