am 6e866323
: Pass DictionaryFacilitator to GestureConsumer#onImeSuggestionsProcessed.
* commit '6e86632311a24af90ad35c98224ae25f226c1954': Pass DictionaryFacilitator to GestureConsumer#onImeSuggestionsProcessed.
This commit is contained in:
commit
ca0b50a34a
3 changed files with 6 additions and 3 deletions
|
@ -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 a new issue