diff options
author | 2014-03-19 17:16:09 +0900 | |
---|---|---|
committer | 2014-03-20 23:33:12 +0900 | |
commit | 835965a75e7dad3026911b6615efa502905f3eab (patch) | |
tree | c1df5377533c2668923c52b4deec507c1d740b55 /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | 4df6bc0853fa5211416614130d1c027e6d0da210 (diff) | |
download | latinime-835965a75e7dad3026911b6615efa502905f3eab.tar.gz latinime-835965a75e7dad3026911b6615efa502905f3eab.tar.xz latinime-835965a75e7dad3026911b6615efa502905f3eab.zip |
[CB11] Get the result of the combination
Change-Id: I165ec4a24f5b1334d55c14948e4d942ec40eb33b
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/WordComposer.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index 29382fea4..d55a773b4 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -193,7 +193,10 @@ public final class WordComposer { final int keyY = event.mY; final int newIndex = size(); mCombinerChain.processEvent(mEvents, event); - mTypedWord.appendCodePoint(primaryCode); + // TODO: remove mTypedWord and compute it dynamically when necessary. We also need to + // make the views of the composing word a SpannableString. + mTypedWord.replace(0, mTypedWord.length(), + mCombinerChain.getComposingWordWithCombiningFeedback().toString()); mEvents.add(event); refreshSize(); mCursorPositionWithinWord = mCodePointSize; |