Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70433efc authored by Jean Chalard's avatar Jean Chalard
Browse files

[IL41] Remove a useless call and trampoline.

No point in calling maybeRetrieveOlderSuggestions now that the
same work is done right here. The callback is also useless now.

Bug: 8636060
Change-Id: Ic14849cb6f6e6293a42cfe068f5c6b18b7677bc0
parent be147f1f
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -1377,13 +1377,13 @@ 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() {
            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 suggestions and we just recomputed new
                                // 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 {