OSDN Git Service

Drop all dispatcher state when dispatcher is disabled.
authorJeff Brown <jeffbrown@google.com>
Thu, 28 Oct 2010 01:43:51 +0000 (18:43 -0700)
committerJeff Brown <jeffbrown@google.com>
Thu, 28 Oct 2010 01:43:51 +0000 (18:43 -0700)
commit120a4594855951ed5eb185fdfc19bf98efef3ba2
tree74fc123ad9fd79bc8d077dc019f5f669e4596e89
parentaa93bcd62482719c146a411008e1eac94135b6a4
Drop all dispatcher state when dispatcher is disabled.

This patch makes the dispatcher drop all of its state when it is
disabled (when the screen turns off).  This ensures that the dispatcher
does not get stuck thinking a pointer is still down if the screen
turned off while the user was touching the display (such as a fat touch
while hitting the power button).

Bug: 3098344
Change-Id: If50ef5804870aa1acd3179fd4b40e3cda58dd39d
include/ui/InputDispatcher.h
libs/ui/InputDispatcher.cpp