OSDN Git Service

Clear clicked nodes from the accessibiliy cache.
authorSvet Ganov <svetoslavganov@google.com>
Sat, 6 Dec 2014 00:52:27 +0000 (16:52 -0800)
committerSvet Ganov <svetoslavganov@google.com>
Sat, 6 Dec 2014 00:52:31 +0000 (16:52 -0800)
commit0322100598e3afae207bb98202b9ce53604bdb28
treefb65812f776b22da54dbcbe200ec0c2d5dbabfc5
parent0c1a5bea2eb897b3f1d34b9c25ea6ed0bd5ca6eb
Clear clicked nodes from the accessibiliy cache.

Nodes that are clicked can change state as a result of a click,
e.g. a check box. The accessibility service may decide to get the
source node from the click event to probe its state and get a
cached state since the window content changed event is after the
click one. Therefore, we have to clear the state of the click
event's source from the cache to ensure the client can query the
latest state of that source.

bug:18625975

Change-Id: I9e339c2fdcf74f260bb8ad86b9b873f7ddd75f19
core/java/android/view/accessibility/AccessibilityCache.java