diff options
author | 2012-02-21 23:42:21 -0800 | |
---|---|---|
committer | 2012-02-21 23:42:21 -0800 | |
commit | e043bf02f2b0a6428a0e6cae20e00cf4432c789f (patch) | |
tree | c81612c0405b17b38aa66c147d556c798da970f1 /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | 1dfdc8056c93a2ea3e26f821af738ce1504af714 (diff) | |
parent | 66bb563535dbe3672f99f75bd71763a551444867 (diff) | |
download | latinime-e043bf02f2b0a6428a0e6cae20e00cf4432c789f.tar.gz latinime-e043bf02f2b0a6428a0e6cae20e00cf4432c789f.tar.xz latinime-e043bf02f2b0a6428a0e6cae20e00cf4432c789f.zip |
Merge "Give LastComposedWord knowledge of the separator (A2)"
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, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index 1f9371538..0fa28e49e 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -308,7 +308,8 @@ public class WordComposer { } // `type' should be one of the LastComposedWord.COMMIT_TYPE_* constants above. - public LastComposedWord commitWord(final int type, final String committedWord) { + public LastComposedWord commitWord(final int type, final String committedWord, + final int separatorCode) { // Note: currently, we come here whenever we commit a word. If it's any *other* kind than // DECIDED_WORD, we should deactivate the last composed word so that we don't attempt to // cancel later. @@ -327,7 +328,7 @@ public class WordComposer { mXCoordinates = new int[N]; mYCoordinates = new int[N]; final LastComposedWord lastComposedWord = new LastComposedWord(codes, - xCoordinates, yCoordinates, mTypedWord.toString(), committedWord); + xCoordinates, yCoordinates, mTypedWord.toString(), committedWord, separatorCode); if (type != LastComposedWord.COMMIT_TYPE_DECIDED_WORD) { lastComposedWord.deactivate(); } |