mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-19 03:21:36 +08:00
This adds an accessibilityPaneTitle that is spoken by TalkBack on API levels 19 and later. In order to trigger the accessibilityPaneTitle event, it was necessary to add a visibility change when the sheet is expanded and hidden. The sheet now is INVISIBLE at STATE_HIDDEN and VISIBLE at all other states. Also removed the code to switch focus to the sheet on expansion in favor of this approach to align with TalkBack's APIs. PiperOrigin-RevId: 499604691