summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-10-22 18:53:36 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2014-10-23 17:46:39 +0000
commit8c4e97db879eef3b943325a971a145e5223f49f8 (patch)
treed7107c4e022d9213449bb0b59105225fda8b1a95 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbec0c53a402224cf4807efd4077047c870f5b58f (diff)
Enhance computation of click point for accessibility.
In explore by touch mode the user performs a double tap to click on an item. In this case the system sends down and up events at the location of accessibility focus. The accessibility focused view may be partially covered. In order to click in this view we compute a point where to send the down and up events. This clicking strategy is a bridge-gap and we will switch to accessibility actions in the future. When computing the point to click we were taking into account whether the view was covered by a clickable sibling or a clickable sibling of a predecessor. Despite our expectation cases in which this is not enough happen in practice. In particular, the focused view may be covered by a clickable descendant of a non-clickable sibling of a predecessor that covers the focused view. This change takes care of handling this case. Note that computing the click point is a fair amount of work but this happens very rarely and on demand. Also the code is short circuiting where possible. Change-Id: I4d3cd8b67a7baf0bcc12f370ea7ba1b04c42c355
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions