Change indentation to 4 spaces. Add check for right api level for
Activity.invalidateOptionsMenu.