diff options
| author | 2025-02-20 09:56:28 -0800 | |
|---|---|---|
| committer | 2025-02-20 17:42:15 -0800 | |
| commit | 7099ff7a67651c7aba0f08f35b062dd64340deaf (patch) | |
| tree | 3bad0583f39a275c6f79c5da4e3028c3b4779e3e /libs/androidfw/FileStream.cpp | |
| parent | ca8ecbebc7e95f3dfec071fc68f43f0d388f7b7c (diff) | |
Prevent automatic Talkback "Detected text" announcement.
That announcement was pronounced because the focusable element
`id/device_container` had all its visible elements `id/title`
and `id/title_icon` marked with `importantForAccessibility=no`, so the
Talkback fell back to it's AI features to describe the element content.
1. Removed `importantForAccessibility="no"` by default from the title
element.
2. Set `focusable="true"` for the device container and
`focusable="false"` for title and subtitle to make screen reader
announce the device container as one entity as per
https://developer.android.com/guide/topics/ui/accessibility/principles#content-groups
3. When the seekbar is visible hide the rest of the content from the
accessibility tree with `updateContainerContentA11yImportance` method.
Flag: EXEMPT bugfix
Bug: b/374862206
Fix: b/374862206
Test: atest SystemUiRoboTests:MediaOutputAdapterLegacyTest,
accessibility with Talkback.
Change-Id: Ifb3613af91ffb71e901e45903328b245e2a4b414
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions