OSDN Git Service

Fix child view ordering for accessibility.
authorSvetoslav <svetoslavganov@google.com>
Thu, 9 Oct 2014 22:49:02 +0000 (15:49 -0700)
committerSvetoslav <svetoslavganov@google.com>
Thu, 9 Oct 2014 23:40:47 +0000 (16:40 -0700)
commit88e447b576bb330e4e25f4a6840df5aa9296a5b5
tree578981caa0978d2a4ede181a381b9307016ad587
parent89b196958fee07475765bd3c458098464ba16f2e
Fix child view ordering for accessibility.

When reporting views to accessibility services we are ordering the
children in a parent based on their location on the screen. The
initial implementation worked pretty well in practive but violated
the transitivity property leading to rare crashes in apps. The current
implementation does not violate transitivity but does not produce
good ordering.

Given the lack of time and to minumize risk this change uses the
old strategy which works most of the time and if that fails we
fall back to the current strategy. Coming up with a correct strategy
that produces good results requires more time.

bug:17887986

Change-Id: I1c233ecdf318befc315e793696ac48bd6c652ab6
core/java/android/view/ViewGroup.java