Pass the item ID through to the item view which is created by the RecyclerView.

PiperOrigin-RevId: 296479321
This commit is contained in:
Material Design Team 2020-02-21 14:43:59 -05:00 committed by ymarian
parent 8e8d20c94f
commit c5908974c6

View File

@ -105,6 +105,7 @@ public class NavigationMenuItemView extends ForegroundLinearLayout implements Me
@Override
public void initialize(@NonNull MenuItemImpl itemData, int menuType) {
this.itemData = itemData;
setId(itemData.getItemId());
setVisibility(itemData.isVisible() ? VISIBLE : GONE);