Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
The new MenuHost API has addMenuProvider methods that can take a Lifecycle and handles the association of the Fragment to the menu based on that Lifecycle. Fragments should pass their ViewLifecycleOwner to the addMenuProvider methods so ensure that the menu items are properly tied to the fragment's view.
We should add a lint rule to help inform developers of this.