drsoran
unread,Jul 7, 2011, 2:18:52 PM7/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jakewharton-projects
Hi!
What is the reason why
android.support.v4.app.FragmentActivity.onPrepareOptionsMenu(android.support.v4.view.Menu)
does nothing and does not calls the implementation of the runtime
type? The original method
android.support.v4.app.FragmentActivity.onPrepareOptionsMenu(android..view.Menu)
is final and surely not meant to be overwritten.
I have a Menu that contains a MenuItem with a SubMenu attached. The
entries of the SubMenu are checkable and exclusive. After creating the
SubMenu in onCreateOptionsMenu(), I have no chance to set the initial
value. During creation, I call setChecked( true ) on the right
MenuItem of the SubMenu but after opening the menu the last added
MenuItem is always checked.
According to the Android docs, one should set the initial value in the
onPrepareOptionsMenu(). But this is never called.
Any ideas on this?
Thanks, drsoran