@Override
 protected void onItemClick(StaggeredGridView parent, View v, int position, long id) {
   if (((ShowWatchlistAdapter) getAdapter()).isShow(position)) {
     Cursor c = (Cursor) getAdapter().getItem(position);
     navigationListener.onDisplayShow(
         id, c.getString(c.getColumnIndex(ShowColumns.TITLE)), LibraryType.WATCHED);
   } else {
     Cursor c = (Cursor) getAdapter().getItem(position);
     navigationListener.onDisplayEpisode(id, c.getString(c.getColumnIndex(ShowColumns.TITLE)));
   }
 }
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
      case R.id.menu_refresh:
        queue.add(new SyncTask());
        return true;

      case R.id.menu_search:
        navigationListener.onStartShowSearch();
        return true;

      default:
        return super.onOptionsItemSelected(item);
    }
  }