We have an application that uses AppCompatActivitywith several fragments, each of which contributes to the options menu. (i.e. fragments override onCreateOptionsMenuand insert their own menu items)
Fragments are also redefined onPrepareOptionsMenuto conditionally enable / disable certain menu items depending on the state of the application.
Prior to updating (22) appcompat onPrepareOptionsMenu, a function is called for each fragment , and everything works correctly. But now he is no longer called.
This behavior is only present in API 10. In the new APIs, they work correctly. Any ideas?
source
share