ActionBarSherlock
ActionBarSherlock copied to clipboard
openOptionsMenu doesn't work
Not much more to say. openOptionsMenu() method won't show the menu.
Here is the usage:
@Override
public boolean onMenuItemSelected(int featureId, MenuItem item) {
switch (item.getItemId()) {
case MORE_MENU:
openOptionsMenu();
break;
default:
break;
}
return super.onMenuItemSelected(featureId, item);
}
I have a related issue where calling openOptionsMenu() only shows the menu briefly and is then immediately closed. It seems timing dependent, as it seems to almost never happen when running the debugger and certainly doesn't happen when stopped at a breakpoint in the menu code.