aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-26 05:11:23 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-12-26 05:11:23 -0800
commitc3f4239ed7ca57807bd52efe90f40efc8e9ae0a6 (patch)
tree1b3fff92b263f6069a8e369ca833cd180f244b47 /java/src/com/android/inputmethod/latin/LatinIME.java
parent9a25b2374d1dc7b983909fdf2b9b6a4ee295e661 (diff)
parent70433efc41970b4dc475b7e446388430aaf801b9 (diff)
downloadlatinime-c3f4239ed7ca57807bd52efe90f40efc8e9ae0a6.tar.gz
latinime-c3f4239ed7ca57807bd52efe90f40efc8e9ae0a6.tar.xz
latinime-c3f4239ed7ca57807bd52efe90f40efc8e9ae0a6.zip
am 70433efc: [IL41] Remove a useless call and trampoline.
* commit '70433efc41970b4dc475b7e446388430aaf801b9': [IL41] Remove a useless call and trampoline.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 77def63f1..9e312498c 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -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,