Pass DictionaryFacilitator to GestureConsumer#onImeSuggestionsProcessed.
Bug: 19712589 Change-Id: I81f9bf09b37487450780d85a1e4f752a9ba49370main
parent
7df95c54fa
commit
6e86632311
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue