OSDN Git Service

Reduce extra a11y events when alpha changes.
authorPhil Weaver <pweaver@google.com>
Tue, 2 Aug 2016 00:41:19 +0000 (17:41 -0700)
committerPhil Weaver <pweaver@google.com>
Tue, 2 Aug 2016 00:41:19 +0000 (17:41 -0700)
commit9937f81ac653ed08032c547147a0934422540a45
treed9540f7169df615a88fdf82dd36781e5df8878f5
parentd7a59636b719c38230b1c6f03e44b462463781db
Reduce extra a11y events when alpha changes.

Changes in alpha only matter if they affect visibility,
so only 0 <-> nonzero changes are worth reporting. Report
them as subtree changes, as visibility affects subviews.

Not reporting every change greatly reduces the number of
event reported when alpha is animated.

Bug: 30183085
Change-Id: I905d53aa81ca8248b3aed86a91842ef499f303a8
core/java/android/view/View.java