Pass DictionaryFacilitator to GestureConsumer#onImeSuggestionsProcessed.

Bug: 19712589
Change-Id: I81f9bf09b37487450780d85a1e4f752a9ba49370
main
David Faden 2015-03-19 13:30:43 -07:00
parent 7df95c54fa
commit 6e86632311
3 changed files with 6 additions and 3 deletions

View File

@ -19,6 +19,7 @@ package com.android.inputmethod.latin.touchinputconsumer;
import android.view.inputmethod.EditorInfo;
import com.android.inputmethod.keyboard.Keyboard;
import com.android.inputmethod.latin.DictionaryFacilitator;
import com.android.inputmethod.latin.SuggestedWords;
import com.android.inputmethod.latin.common.InputPointers;
import com.android.inputmethod.latin.inputlogic.PrivateCommandPerformer;
@ -62,6 +63,7 @@ public class GestureConsumer {
}
public void onImeSuggestionsProcessed(final SuggestedWords suggestedWords,
final int composingStart, final int composingLength) {
final int composingStart, final int composingLength,
final DictionaryFacilitator dictionaryFacilitator) {
}
}

View File

@ -1407,7 +1407,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
*/
public void onTailBatchInputResultShown(final SuggestedWords suggestedWords) {
mGestureConsumer.onImeSuggestionsProcessed(suggestedWords,
mInputLogic.getComposingStart(), mInputLogic.getComposingLength());
mInputLogic.getComposingStart(), mInputLogic.getComposingLength(),
mDictionaryFacilitator);
}
// This method must run on the UI Thread.

View File

@ -34,7 +34,7 @@ public class NullGestureConsumerTests extends AndroidTestCase {
GestureConsumer.NULL_GESTURE_CONSUMER.onGestureStarted(null, null);
GestureConsumer.NULL_GESTURE_CONSUMER.onGestureCanceled();
GestureConsumer.NULL_GESTURE_CONSUMER.onGestureCompleted(null);
GestureConsumer.NULL_GESTURE_CONSUMER.onImeSuggestionsProcessed(null, -1, -1);
GestureConsumer.NULL_GESTURE_CONSUMER.onImeSuggestionsProcessed(null, -1, -1, null);
}
/**