am 70433efc: [IL41] Remove a useless call and trampoline.
* commit '70433efc41970b4dc475b7e446388430aaf801b9': [IL41] Remove a useless call and trampoline.main
commit
c3f4239ed7
|
@ -1377,20 +1377,20 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
private void getSuggestedWordsGestureLocked(final InputPointers batchPointers,
|
||||
final int sequenceNumber, final OnGetSuggestedWordsCallback callback) {
|
||||
mLatinIme.mInputLogic.mWordComposer.setBatchInputPointers(batchPointers);
|
||||
mLatinIme.getSuggestedWordsOrOlderSuggestionsAsync(Suggest.SESSION_GESTURE,
|
||||
sequenceNumber, new OnGetSuggestedWordsCallback() {
|
||||
@Override
|
||||
public void onGetSuggestedWords(SuggestedWords suggestedWords) {
|
||||
if (suggestedWords.isEmpty()) {
|
||||
// Previous suggestions are found in InputLogic#mSuggestedWords. Since
|
||||
// these are the most recent suggestions and we just recomputed new
|
||||
// ones to update them, it means the previous ones are there.
|
||||
callback.onGetSuggestedWords(mLatinIme.mInputLogic.mSuggestedWords);
|
||||
} else {
|
||||
callback.onGetSuggestedWords(suggestedWords);
|
||||
}
|
||||
}
|
||||
});
|
||||
getSuggestedWords(Suggest.SESSION_GESTURE, sequenceNumber,
|
||||
new OnGetSuggestedWordsCallback() {
|
||||
@Override
|
||||
public void onGetSuggestedWords(SuggestedWords suggestedWords) {
|
||||
if (suggestedWords.isEmpty()) {
|
||||
// Previous suggestions are found in InputLogic#mSuggestedWords.
|
||||
// Since these are the most recent ones and we just recomputed new
|
||||
// ones to update them, it means the previous ones are there.
|
||||
callback.onGetSuggestedWords(mLatinIme.mInputLogic.mSuggestedWords);
|
||||
} else {
|
||||
callback.onGetSuggestedWords(suggestedWords);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void getSuggestedWords(final int sessionId, final int sequenceNumber,
|
||||
|
|
Loading…
Reference in New Issue