title: Items do not respod in navigation drawer
body: <p>I can't get my items to respond in my navigation drawer. The plan is to have a logout item that logout the user when clicked upon. The problem is that when i click on the item 'logout' it only closes the drawer and my code is ignored. Please help me, been on this for hours now!</p>
  
  <p>XML code, activitymain</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context="com.example.rebeckagerdtham.skane18.activities.menuActivity"
  android:id="@+id/drawerLayout"&gt;
  
  &lt;android.support.design.widget.NavigationView
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      app:menu="@menu/navigationmenu"
      android:layout_gravity="start"
      android:id="@+id/nav_menu"&gt;
  &lt;/android.support.design.widget.NavigationView&gt;
  
  &lt;android.support.constraint.ConstraintLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;include layout="@layout/toolbar"
          android:id="@+id/mCustomToolbar"&gt;
      &lt;/include&gt;
  
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>XML navigationmenu
  
  </p>
  
  <pre><code>&lt;item android:id="@+id/nav_logout"
      android:title="Logga ut"
      android:checked="false"
  
      /&gt;
  
  &lt;item android:id="@+id/nav_settings"
      android:title="Inställningar"
      /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Java code</p>
  
  <pre><code>public class menuActivity extends AppCompatActivity {
  
  private FirebaseAuth mAuth;
  private DrawerLayout mDrawerLayout;
  private ActionBarDrawerToggle mToggle;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_menu);
      mAuth = FirebaseAuth.getInstance();
  
      //Toolbar modifications
      Toolbar my_toolbar = findViewById(R.id.mCustomToolbar);
      setSupportActionBar(my_toolbar);
      getSupportActionBar().setTitle("Meny");
      getSupportActionBar().setLogo(R.drawable.log);
      mDrawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);
      mToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.string.open, R.string.close);
      mDrawerLayout.addDrawerListener(mToggle);
      mToggle.syncState();
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  
      NavigationView nv = (NavigationView) findViewById(R.id.nav_menu);
      nv.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
          @Override
          public boolean onNavigationItemSelected(@NonNull MenuItem menuItem){
              if(menuItem.getItemId()== R.id.nav_logout){
                  Intent sendToLoginPage = new Intent(getApplicationContext(), LoginActivity.class);
                  startActivity(sendToLoginPage);
              }
              return true;
          }
      });
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu)  {
      super.onCreateOptionsMenu(menu);
      getMenuInflater().inflate(R.menu.navigationmenu, menu);
      return true;
  
  }
  
  
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      if(mToggle.onOptionsItemSelected(item)){
          return true;
      }
      return super.onOptionsItemSelected(item);
  }
  </code></pre>