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/event/DeadKeyCombiner.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 '')
-rw-r--r-- | java/src/com/android/inputmethod/event/DeadKeyCombiner.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java index 342f499c9..bef4d8594 100644 --- a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java +++ b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java @@ -32,11 +32,12 @@ public class DeadKeyCombiner implements Combiner { @Override public Event processEvent(final ArrayList<Event> previousEvents, final Event event) { + if (null == event) return null; // Just in case some combiner is broken if (TextUtils.isEmpty(mDeadSequence)) { if (event.isDead()) { mDeadSequence.appendCodePoint(event.mCodePoint); } - return Event.createConsumedEvent(event); + return event; } else { // TODO: Allow combining for several dead chars rather than only the first one. // The framework doesn't know how to do this now. |