material-components-android
material-components-android copied to clipboard
[Exposed Drop Down][a11y] Overriding the accessibility delegate of TextInputLayout breaks dropdown functionality
Description: Overriding the accessibility delegate of TextInputLayout stops normal functionality for exposed drop down. As we wish to add content description, we thought of updating the accessibility info. This changes the talkback for material design exposed drop down to edit text and double stop working as it doesn't open the dropdown pop up.
Expected behavior: Expected behavior is that the TextInputLayout and child MaterialAutoCompleteTextView behaves normally as exposed drop down and the new text added to accessibility info gets announced.
Source code: //textInputLayout.setTextInputAccessibilityDelegate(object : TextInputLayout.AccessibilityDelegate( // textInputLayout // ) { // override fun onInitializeAccessibilityNodeInfo( // host: View, // info: AccessibilityNodeInfoCompat // ) { // super.onInitializeAccessibilityNodeInfo(host, info) //. // TODO Code // })
Android API version: 13
Material Library version: 1.4.0 Device: Pixel 6
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.