mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
[a11y][ExposedDropdownMenu] Fixed dropdown list not showing for non editable dropdown menus in switch access mode.
For the editable type it remains as was: clicking on the edit text triggers the keyboard and clicking on the arrow icon shows the dropdown list. PiperOrigin-RevId: 408655618
This commit is contained in:
parent
c7c5c7c625
commit
d8e19ddedf
@ -131,7 +131,7 @@ class DropdownMenuEndIconDelegate extends EndIconDelegate {
|
||||
// If dropdown is non editable, layout click is what triggers showing/hiding the popup
|
||||
// list. Otherwise, arrow icon alone is what triggers it.
|
||||
if (event.getEventType() == TYPE_VIEW_CLICKED
|
||||
&& accessibilityManager.isTouchExplorationEnabled()
|
||||
&& accessibilityManager.isEnabled()
|
||||
&& !isEditable(textInputLayout.getEditText())) {
|
||||
showHideDropdown(editText);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user