commit | c350f1604f348dceec28ba0d7e4cfc293333f797 | [log] [tgz] |
---|---|---|
author | Svetoslav Ganov <svetoslavganov@google.com> | Thu Nov 10 17:54:24 2011 -0800 |
committer | Svetoslav Ganov <svetoslavganov@google.com> | Fri Nov 11 10:43:13 2011 -0800 |
tree | 518e9cb20fe9ff3cb2c32df34eadfcdb7932c765 | |
parent | 03466e35f2996fd3330452e38984f0012239305e [diff] |
Instrumentation sendStringSync(String) may try to inject obsolete events. KeyEvents returned by KeyCharacterMap.getEvents() have the same time stamp and the system rejects too old events. Hence, it is possible for an event to become stale before it is injected if it takes too long to inject the preceding ones. Now the time of the event is set just before injecting it. Change-Id: I72b60d261f8bda857b331d0f1b1bd97f9f15def3