Android. Interact with menu from Presenter

785 views Asked by At

Can't understand how can i manipulate with menu from Presenter. For example i have some rules to add menu item (for example ROLE), or i want to update text of menu item (badge) from background. I know that i can do all things in Activity, but Activity is a View.
So, if follow MVP rules, all things which communicate with db, services and etc must be do in presenter, but as i right understood, state of menu item can be change only in

public boolean onCreateOptionsMenu( Menu menu ) {}

P.S. Only one thought comes to mind. Is call method in presenter on `

SomeView.onCreateOptionsMenu()

But i don't want set Menu in presenter

0

There are 0 answers