summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2022-02-01 22:48:47 +0000
committer Winson Chung <winsonc@google.com> 2022-02-02 19:13:08 +0000
commit62f476835cf5258a4f3b8d5e38f24b92bc2ef53d (patch)
treeed07d708632aa4e992f7eaae8123cab67510528f /api/api.go
parentd7c5ca769d52bb537ddd2f7d324c731057ffdf5a (diff)
Cache accessibility info in NavBarHelper to reduce binder calls
- Currently, we make two binder calls whenever the sysui state changes to fetch the current accessibility info. Instead we can use the AccessibilityButtonTargetsObserver to listen for the changes and only update the accessibility state when it changes. Bug: 201633154 Test: Enable/disable accessibility services and verify button shows Enable/disable > 1 accessibility services and verify that button is long-clickable to show the services menu Verify both of the above with gesture nav & accessibility service as well Change-Id: I84a7d20040c61ea75ac0b9e1f790f4a8b0ebe398
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions