diff options
author | 2014-07-30 00:53:24 +0000 | |
---|---|---|
committer | 2014-07-30 00:53:24 +0000 | |
commit | bfa6f9533ca0d7ebb2650639765c77a77f37e0d9 (patch) | |
tree | cefe60ae9915562451180337c3ff5bad606e2f51 /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | 99aff0af98e66b1d8515225a103f5beb84d098b9 (diff) | |
download | latinime-bfa6f9533ca0d7ebb2650639765c77a77f37e0d9.tar.gz latinime-bfa6f9533ca0d7ebb2650639765c77a77f37e0d9.tar.xz latinime-bfa6f9533ca0d7ebb2650639765c77a77f37e0d9.zip |
Revert "[HW7] Introduce consumed events"
This reverts commit 99aff0af98e66b1d8515225a103f5beb84d098b9.
Reverting due to a few critical bugs and unit test failures.
Change-Id: Id41d802981d079f17134a03cc30ab36a3cdd4ac1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/WordComposer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index 171d0bba7..df7958470 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -177,7 +177,7 @@ public final class WordComposer { /** * Process an event and return an event, and return a processed event to apply. * @param event the unprocessed event. - * @return the processed event. Never null, but may be marked as consumed. + * @return the processed event. */ public Event processEvent(final Event event) { final Event processedEvent = mCombinerChain.processEvent(mEvents, event); @@ -191,14 +191,14 @@ public final class WordComposer { * All input events should be supported, including software/hardware events, characters as well * as deletions, multiple inputs and gestures. * - * @param event the event to apply. Must not be null. + * @param event the event to apply. */ public void applyProcessedEvent(final Event event) { - mCombinerChain.applyProcessedEvent(event); final int primaryCode = event.mCodePoint; final int keyX = event.mX; final int keyY = event.mY; final int newIndex = size(); + mCombinerChain.applyProcessedEvent(event); refreshTypedWordCache(); mCursorPositionWithinWord = mCodePointSize; // We may have deleted the last one. |