I'm not sure why onPrepareMenu() receives a NavigationMenu as parameter.
NavigationMenu is an internal android class (just look it's package: android.support.design.internal). It's even annotated with @RestrictTo, I think its pretty clear it is not a class intended to be used outside of internal development.
Why not pass a android.view.Menu instead? Is there something I'm missing?
(I really do not intend to sound harsh. I'm still practicing my written english so~)
I'm not sure why onPrepareMenu() receives a NavigationMenu as parameter. NavigationMenu is an internal android class (just look it's package: android.support.design.internal). It's even annotated with @RestrictTo, I think its pretty clear it is not a class intended to be used outside of internal development. Why not pass a android.view.Menu instead? Is there something I'm missing?
(I really do not intend to sound harsh. I'm still practicing my written english so~)