OSDN Git Service

Elide undelivered drag-location messages
authorChris Tate <ctate@google.com>
Tue, 12 Oct 2010 19:58:43 +0000 (12:58 -0700)
committerChris Tate <ctate@google.com>
Tue, 12 Oct 2010 19:58:43 +0000 (12:58 -0700)
commit91e9bb3b468f0d5efccdb245d151cbcda1583386
tree78de1a7037f709c09db92f712eb007eb1b76febe
parentbe27cc6943ead560c0b404b7755b88cda0fd1eea
Elide undelivered drag-location messages

The recipient app could be receiving drag location updates faster than
it handled them, leading to progressive poor responsiveness.  Now we
discard any undelivered pending location updates and replace them with
the newest data point when the location is updated.

Change-Id: I7299d205a0ef8ef8f5f32fd14e9ef87383d92717
core/java/android/view/ViewRoot.java