Skip to content

Commit db115f0

Browse files
Material Design Teampaulfthomas
authored andcommitted
[ExposedDropdownMenu] Fix MaterialAutoCompleteTextView.setDropDownBackgroundDrawable(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
1 parent a352178 commit db115f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/java/com/google/android/material/textfield/MaterialAutoCompleteTextView.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,14 @@ public ColorStateList getSimpleItemSelectedRippleColor() {
281281
return simpleItemSelectedRippleColor;
282282
}
283283

284+
@Override
285+
public void setDropDownBackgroundDrawable(Drawable d) {
286+
super.setDropDownBackgroundDrawable(d);
287+
if (modalListPopup != null) {
288+
modalListPopup.setBackgroundDrawable(d);
289+
}
290+
}
291+
284292
/**
285293
* Returns the elevation of the dropdown popup.
286294
*

0 commit comments

Comments
 (0)