[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:
leticiars 2021-11-09 14:07:34 -05:00 committed by Conrad Chen
parent c7c5c7c625
commit d8e19ddedf

View File

@ -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);
}