Merge "Update javadoc for EditorInfo.actionId usage"

This commit is contained in:
TreeHugger Robot
2021-09-27 03:43:36 +00:00
committed by Android (Google) Code Review
2 changed files with 9 additions and 3 deletions

View File

@@ -2867,7 +2867,12 @@ public class InputMethodService extends AbstractInputMethodService {
* Ask the input target to execute its default action via
* {@link InputConnection#performEditorAction
* InputConnection.performEditorAction()}.
*
*
* <p>For compatibility, this method does not execute a custom action even if {@link
* EditorInfo#actionLabel EditorInfo.actionLabel} is set. The implementor should directly call
* {@link InputConnection#performEditorAction InputConnection.performEditorAction()} with
* {@link EditorInfo#actionId EditorInfo.actionId} if they want to execute a custom action.</p>
*
* @param fromEnterKey If true, this will be executed as if the user had
* pressed an enter key on the keyboard, that is it will <em>not</em>
* be done if the editor has set {@link EditorInfo#IME_FLAG_NO_ENTER_ACTION

View File

@@ -726,8 +726,9 @@ public interface InputConnection {
* associated with the action.</p>
*
* @param editorAction This must be one of the action constants for
* {@link EditorInfo#imeOptions EditorInfo.editorType}, such as
* {@link EditorInfo#IME_ACTION_GO EditorInfo.EDITOR_ACTION_GO}.
* {@link EditorInfo#imeOptions EditorInfo.imeOptions}, such as
* {@link EditorInfo#IME_ACTION_GO EditorInfo.EDITOR_ACTION_GO}, or the value of
* {@link EditorInfo#actionId EditorInfo.actionId} if a custom action is available.
* @return true on success, false if the input connection is no longer
* valid.
*/