Update git submodules
* Update frameworks/support from branch 'androidx-master-dev'
to 1c0710948ec15b25940722101f98dcd1aab67ae5
- Merge changes Ie6541e0c,I72fd151d into androidx-master-dev
* changes:
Handle semantics bounds change and throttle window content change events
Notify accessibility when semantics node bounds change
- Handle semantics bounds change and throttle window content change events
When semantics node bounds change, accessibility needs to send out
a subtree change event to update the accessibility cache and rerender
accessibility focus. Note that bounds change of a LayoutNode without
semantics will also affect its children which might have semantic, so
every LayoutNode in the subtree is processed. The final window content
change event sent out is guarenteed to have a source node which is not
merged to a parent (because accessibility doesn't recognize nodes merged
to parents).
This CL sends these events in throttled batches every 100ms, in order to
avoid degrading performance particularly in animations.
Bug: b/153643868
Relnote: N/A
Test: Two new tests in AndroidAccessibilityTest
Change-Id: Ie6541e0ce7c757da78cb2ae41cdcc1d3abb3aeb6
- Notify accessibility when semantics node bounds change
When semantics node bounds change, accessibility needs to send out
subtree change event to update accessibility cache and rerender
accessibility focus. LayoutNode is passed
as the argument because SemanticsWrapper is an internal class.
Bug: b/153643868
Relnote: Add a callback to notify Owner when layoutnode bounds change.
Test: without the change and its dependent, the drawer content when open can't be accessed
(when the drawer opens, its elements change from 0 bounds to non-zero
bounds). With the change and its dependent, the drawer content can be accessed with linear
navigation.
Also added unit test.
Change-Id: I72fd151db59ff5196d9b03f0735f40535a71b47d
1 file changed