diff options
author | 2012-03-02 20:26:51 +0900 | |
---|---|---|
committer | 2012-03-02 20:26:51 +0900 | |
commit | e2a50bd8049a8bd38a9154b510f9ccd047459e05 (patch) | |
tree | c63be7cf7731e629e7cffe5cb26810343445ab44 /java/src | |
parent | 7204eab3da916d8873b7eeee4b4528a6b82de19c (diff) | |
download | latinime-e2a50bd8049a8bd38a9154b510f9ccd047459e05.tar.gz latinime-e2a50bd8049a8bd38a9154b510f9ccd047459e05.tar.xz latinime-e2a50bd8049a8bd38a9154b510f9ccd047459e05.zip |
Optimization
Avoid doing some useless processing.
Change-Id: I4ce0a188e10db30322bd25751dc5c09492cea301
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 47eecafed..211b69a44 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1742,9 +1742,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar throw new RuntimeException("Couldn't flip the indicator!"); } } - final CharSequence textWithUnderline = - getTextWithUnderline(mWordComposer.getTypedWord()); - if (!TextUtils.isEmpty(textWithUnderline)) { + if (mWordComposer.isComposingWord()) { + final CharSequence textWithUnderline = + getTextWithUnderline(mWordComposer.getTypedWord()); ic.setComposingText(textWithUnderline, 1); } } |