diff options
author | 2014-03-24 05:28:52 -0700 | |
---|---|---|
committer | 2014-03-24 05:28:52 -0700 | |
commit | 12ee0d3a5a7f02c9c66b90a0716d7358903b4727 (patch) | |
tree | d8b938e77f25a4b12a8b9c24c374672f3eabd98a /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | 8b921161ca83f3cea6974924f41499cba945dd3a (diff) | |
parent | 7f0e5fa66c7238b91999627dc8e75d234c1d9e75 (diff) | |
download | latinime-12ee0d3a5a7f02c9c66b90a0716d7358903b4727.tar.gz latinime-12ee0d3a5a7f02c9c66b90a0716d7358903b4727.tar.xz latinime-12ee0d3a5a7f02c9c66b90a0716d7358903b4727.zip |
am 7f0e5fa6: Merge "[CB11] Get the result of the combination"
* commit '7f0e5fa66c7238b91999627dc8e75d234c1d9e75':
[CB11] Get the result of the combination
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; |