aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-02-19 18:17:35 -0800
committerJean Chalard <jchalard@google.com>2012-02-21 15:46:53 -0800
commit9a2a11e65bd32d82754b3fcff74e9e3795327628 (patch)
tree0268651b0c73949956e6e01e01fa3272b6ffa8c3 /java/src
parent2649e42d756132ad763d6db5f9de1f901bbefd06 (diff)
downloadlatinime-9a2a11e65bd32d82754b3fcff74e9e3795327628.tar.gz
latinime-9a2a11e65bd32d82754b3fcff74e9e3795327628.tar.xz
latinime-9a2a11e65bd32d82754b3fcff74e9e3795327628.zip
Rewrite a condition
Change-Id: I805c9579788d99b015feb2075ad4771756c7adc5
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index f284f0d65..3abe514b0 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -887,15 +887,15 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
// the second one - the first call successfully avoids this test, but the second one
// enters. For the moment we rely on noComposingSpan to further reduce the impact.
+ // TODO: the following is probably better done in resetEntireInputState().
+ // it should only happen when the cursor moved, and the very purpose of the
+ // test below is to narrow down whether this happened or not. Likewise with
+ // the call to postUpdateShiftState.
// We set this to NONE because after a cursor move, we don't want the space
// state-related special processing to kick in.
mSpaceState = SPACE_STATE_NONE;
- if (((mWordComposer.isComposingWord())
- || mVoiceProxy.isVoiceInputHighlighted())
- && (selectionChanged || noComposingSpan)) {
- resetEntireInputState();
- } else if (!mWordComposer.isComposingWord()) {
+ if ((!mWordComposer.isComposingWord()) || selectionChanged || noComposingSpan)) {
resetEntireInputState();
}