コード例 #1
0
 public void resumeSuggestionOnLastComposedWord(final LastComposedWord lastComposedWord) {
   mEvents.clear();
   Collections.copy(mEvents, lastComposedWord.mEvents);
   mInputPointers.set(lastComposedWord.mInputPointers);
   mCombinerChain.reset();
   refreshTypedWordCache();
   mCapitalizedMode = lastComposedWord.mCapitalizedMode;
   mAutoCorrection = null; // This will be filled by the next call to updateSuggestion.
   mCursorPositionWithinWord = mCodePointSize;
   mRejectedBatchModeSuggestion = null;
   mIsResumed = true;
 }
コード例 #2
0
 public void setBatchInputPointers(final InputPointers batchPointers) {
   mInputPointers.set(batchPointers);
   mIsBatchMode = true;
 }