aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-24 05:33:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-24 05:33:34 +0000
commit7f0e5fa66c7238b91999627dc8e75d234c1d9e75 (patch)
treed8b938e77f25a4b12a8b9c24c374672f3eabd98a /java/src/com/android/inputmethod/latin
parent83b094a4c899818855c16122e6036e79be29d56f (diff)
parent835965a75e7dad3026911b6615efa502905f3eab (diff)
downloadlatinime-7f0e5fa66c7238b91999627dc8e75d234c1d9e75.tar.gz
latinime-7f0e5fa66c7238b91999627dc8e75d234c1d9e75.tar.xz
latinime-7f0e5fa66c7238b91999627dc8e75d234c1d9e75.zip
Merge "[CB11] Get the result of the combination"
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r--java/src/com/android/inputmethod/latin/WordComposer.java5
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;