Skip to content

Commit

Permalink
[a11y][ExposedDropdownMenu] Fixed dropdown list not showing for non e…
Browse files Browse the repository at this point in the history
…ditable 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
  • Loading branch information
leticiarossi authored and drchen committed Nov 10, 2021
1 parent c7c5c7c commit d8e19dd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -131,7 +131,7 @@ public void onPopulateAccessibilityEvent(View host, @NonNull AccessibilityEvent
// 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);
}
Expand Down

0 comments on commit d8e19dd

Please sign in to comment.