@Override
 public boolean onOptionsItemSelected(MenuItem item) {
   // Pass the event to ActionBarDrawerToggle, if it returns
   // true, then it has handled the app icon touch event
   //noinspection SimplifiableIfStatement
   if (mDrawerToggle.isDrawerIndicatorEnabled() && mDrawerToggle.onOptionsItemSelected(item)) {
     return true;
   }
   return super.onOptionsItemSelected(item);
 }
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   // toggle nav drawer on selecting action bar app icon/title
   /*
   if (mDrawerToggle.onOptionsItemSelected(item)) {
       return true;
   }
   // Handle action bar actions click
   switch (item.getItemId()) {
       case R.id.action_settings:
           return true;
       default:
           return super.onOptionsItemSelected(item);
   }*/
   if (mDrawerToggle.isDrawerIndicatorEnabled() && mDrawerToggle.onOptionsItemSelected(item)) {
     return true;
   } else if (item.getItemId() == android.R.id.home
       && getSupportFragmentManager().popBackStackImmediate()) {
     return true;
   } else {
     return super.onOptionsItemSelected(item);
   }
 }