Skip to content

Commit 431ea84

Browse files
committed
Add document to SpellCheckerService
Bug: 6136149 Change-Id: I93f0127878372006a240a9a34823f873bcc09927
1 parent 6183cd6 commit 431ea84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/java/android/service/textservice/SpellCheckerService.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ public SuggestionsInfo[] onGetSuggestionsMultiple(TextInfo[] textInfos,
141141
}
142142

143143
/**
144-
* The default implementation returns an array of SentenceSuggestionsInfo by simply calling
145-
* onGetSuggestions().
144+
* Get sentence suggestions for specified texts in an array of TextInfo.
145+
* The default implementation returns an array of SentenceSuggestionsInfo by simply
146+
* calling onGetSuggestions.
147+
* This function will run on the incoming IPC thread.
148+
* So, this is not called on the main thread,
149+
* but will be called in series on another thread.
146150
* When you override this method, make sure that suggestionsLimit is applied to suggestions
147151
* that share the same start position and length.
148152
* @param textInfos an array of the text metadata

0 commit comments

Comments
 (0)