Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
jb...@google.com <jb...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
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.