mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Pass the item ID through to the item view which is created by the RecyclerView.
PiperOrigin-RevId: 296479321
This commit is contained in:
parent
8e8d20c94f
commit
c5908974c6
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user