Skip to content

Commit

Permalink
[ExposedDropdownMenu] Fix MaterialAutoCompleteTextView.setDropDownBac…
Browse files Browse the repository at this point in the history
…kgroundDrawable(Drawable).

[TextField] MaterialAutoCompleteTextView uses a ListPopupWindow to show a modal dropdown menu when in "Accessibility Touch Exploration" mode. This popup also should respond to setDropDownBackgroundDrawable(Drawable).

PiperOrigin-RevId: 482233381
  • Loading branch information
Material Design Team authored and paulfthomas committed Oct 21, 2022
1 parent a352178 commit db115f0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ public ColorStateList getSimpleItemSelectedRippleColor() {
return simpleItemSelectedRippleColor;
}

@Override
public void setDropDownBackgroundDrawable(Drawable d) {
super.setDropDownBackgroundDrawable(d);
if (modalListPopup != null) {
modalListPopup.setBackgroundDrawable(d);
}
}

/**
* Returns the elevation of the dropdown popup.
*
Expand Down

0 comments on commit db115f0

Please sign in to comment.