Often I meet the code, something like this:
@Override public boolean onOptionsItemSelected(MenuItem menuItem){ super.onOptionsItemSelected(menuItem); switch (menuItem.getItemId()){ case R.id.add: Toast.makeText(getContext(), "Add", Toast.LENGTH_SHORT).show(); } return true; } And all of them have the string super.onOptionsItemSelected(menuItem); . As I understand it, the superclass method is called, but why? Removed this line, everything works.
superchain consists of empty methods, or you don’t notice something - Igor