Skip to content

Commit b5caab6

Browse files
satok16Android (Google) Code Review
authored andcommitted
Merge "Add document to SpellCheckerService"
2 parents c11547c + 431ea84 commit b5caab6

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)