@Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();

    switch (id) {
      case android.R.id.home:
        {
          Intent intent = new Intent(this, VideoItemListActivity.class);
          intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
          NavUtils.navigateUpTo(this, intent);
          return true;
        }
      case R.id.action_settings:
        {
          Intent intent = new Intent(this, SettingsActivity.class);
          startActivity(intent);
          return true;
        }
      case R.id.action_report_error:
        {
          ErrorActivity.reportError(
              VideoItemListActivity.this,
              new Vector<Exception>(),
              null,
              null,
              ErrorActivity.ErrorInfo.make(
                  ErrorActivity.USER_REPORT,
                  ServiceList.getNameOfService(currentStreamingServiceId),
                  "user_report",
                  R.string.user_report));
          return true;
        }
      case R.id.action_show_downloads:
        {
          Intent intent = new Intent(this, org.schabi.newpipe.download.MainActivity.class);
          startActivity(intent);
          return true;
        }
      default:
        return videoFragment.onOptionsItemSelected(item) || super.onOptionsItemSelected(item);
    }
  }