diff options
author | 2011-12-13 23:24:37 +0900 | |
---|---|---|
committer | 2011-12-16 15:58:29 +0900 | |
commit | 196d82cdd740580ed79d801483dbc282be85d076 (patch) | |
tree | 2b30b6f576ea3be64e3bce65d6e880cbc3b70bac /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | 6ba5f0d341a0fef9020c9dee814fb4b369620737 (diff) | |
download | latinime-196d82cdd740580ed79d801483dbc282be85d076.tar.gz latinime-196d82cdd740580ed79d801483dbc282be85d076.tar.xz latinime-196d82cdd740580ed79d801483dbc282be85d076.zip |
Use the WordComposer to check if we are composing a word
...instead of the hard-to-understand mHasUncommittedTypedChars.
This is possible because now the word composer is actually aware
of commits.
Change-Id: I36b664ce8402a280f801e87b9ebe161f416b0853
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/WordComposer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index c0204c2a6..b88e73fc7 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -120,6 +120,10 @@ public class WordComposer { return mCurrentWord.mTypedWord.length(); } + public final boolean isComposingWord() { + return size() > 0; + } + /** * Returns the codes at a particular position in the word. * @param index the position in the word |