@Override
 public void onDrawerClosed(View drawerView) {
   super.onDrawerClosed(drawerView);
   if (menuItem != null) {
     onDrawerClosedByMenu(drawerView, menuItem);
     menuItem = null; // reset;
   }
 }
  @Override
  public void onDrawerClosed(View view) {
    mDrawerToggle.onDrawerClosed(view);
    stopTransition();
    mOpened = false;

    if (mDrawerListener != null) {
      mDrawerListener.onDrawerClosed(view);
    }
  }
        @Override
        public void onDrawerClosed(View drawerView) {
          if (mDrawerToggle != null) mDrawerToggle.onDrawerClosed(drawerView);
          if (mItemToOpenWhenDrawerCloses >= 0) {
            Bundle extras =
                ActivityOptions.makeCustomAnimation(
                        ActionBarCastActivity.this, R.anim.fade_in, R.anim.fade_out)
                    .toBundle();

            Class activityClass = null;
            switch (mItemToOpenWhenDrawerCloses) {
              case R.id.navigation_allmusic:
                activityClass = MusicPlayerActivity.class;
                break;
              case R.id.navigation_playlists:
                activityClass = PlaceholderActivity.class;
                break;
            }
            if (activityClass != null) {
              startActivity(new Intent(ActionBarCastActivity.this, activityClass), extras);
              finish();
            }
          }
        }