diff options
| author | Victoria Lease <violets@google.com> | 2012-08-23 15:32:42 -0700 |
|---|---|---|
| committer | Victoria Lease <violets@google.com> | 2012-08-23 15:32:42 -0700 |
| commit | b570c64ad18735b47df053dd79bfb79a74106236 (patch) | |
| tree | 19a12538904af449054bcbac87fbd9c0e85d4f5d /core/java | |
| parent | 2e9aa74127b9f5d4bc3c424ceb198f58c21eba73 (diff) | |
avert 2500ms wait in InputMethodManager
When dispatching input events to the main thread, the event is
handled directly rather than queued. If we have a timeout waiting for
the event to happen, it has to be registered before we call the
dispatcher, otherwise we'll wait for the timeout even though the event
has already been handled.
Bug: 6734044
Change-Id: I6826163dbc6133b385cf1076bb077fb4e82870a1
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index 548d4ad97be4..e754adc54cf9 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -1577,8 +1577,8 @@ public final class InputMethodManager { try { if (DEBUG) Log.v(TAG, "DISPATCH KEY: " + mCurMethod); final long startTime = SystemClock.uptimeMillis(); - mCurMethod.dispatchKeyEvent(seq, key, mInputMethodCallback); enqueuePendingEventLocked(startTime, seq, mCurId, callback); + mCurMethod.dispatchKeyEvent(seq, key, mInputMethodCallback); return; } catch (RemoteException e) { Log.w(TAG, "IME died: " + mCurId + " dropping: " + key, e); @@ -1602,8 +1602,8 @@ public final class InputMethodManager { try { if (DEBUG) Log.v(TAG, "DISPATCH TRACKBALL: " + mCurMethod); final long startTime = SystemClock.uptimeMillis(); - mCurMethod.dispatchTrackballEvent(seq, motion, mInputMethodCallback); enqueuePendingEventLocked(startTime, seq, mCurId, callback); + mCurMethod.dispatchTrackballEvent(seq, motion, mInputMethodCallback); return; } catch (RemoteException e) { Log.w(TAG, "IME died: " + mCurId + " dropping trackball: " + motion, e); |
