title: onNavigationItemSelected not calling when item is selected
body: <p>I am adding footer-view in navigation drawer using following code -</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.drawerlayout.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:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:openDrawer="start"&gt;
  
      &lt;include
          layout="@layout/app_bar_main"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;com.google.android.material.navigation.NavigationView
          android:id="@+id/nv_top"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="top|start"&gt;
  
          &lt;androidx.core.widget.NestedScrollView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"&gt;
                  &lt;include layout="@layout/nav_header_main"/&gt;
  
                  &lt;com.google.android.material.navigation.NavigationView
                      android:id="@+id/drawer_menu_body"
                      app:elevation="0dp"
                      android:layout_height="0dp"
                      android:layout_width="wrap_content"
                      android:layout_weight="1"
                      app:menu="@menu/activity_main_drawer"&gt;
  
                  &lt;/com.google.android.material.navigation.NavigationView&gt;
  
                  &lt;include layout="@layout/navigation_drawer_bottom_view"/&gt;
              &lt;/LinearLayout&gt;
  
          &lt;/androidx.core.widget.NestedScrollView&gt;
      &lt;/com.google.android.material.navigation.NavigationView&gt;
  
  
  &lt;/androidx.drawerlayout.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>But now onNavigationItemSelected() is not calling also navigation drawer keeps open until we slide it manually. I am using navigation-component and nav graph.</p>
  
  <p><a href="https://i.stack.imgur.com/yuGHI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yuGHI.jpg" alt="Side menu with footer view"></a></p>
  
  <p>This is my activity code -</p>
  
  <pre><code>override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      setContentView(R.layout.activity_main)
      val toolbar: Toolbar = findViewById(R.id.toolbar)
      setSupportActionBar(toolbar)
  
      val navController = findNavController(R.id.nav_host_fragment)
      drawer_menu_body.setNavigationItemSelectedListener(this)
      nv_top.setNavigationItemSelectedListener(this)
  
      appBarConfiguration = AppBarConfiguration(
          setOf(
              R.id.nav_home,
              R.id.nav_gallery,
              R.id.nav_slideshow,
              R.id.nav_tools,
              R.id.nav_share,
              R.id.nav_send
          ), drawer_layout)
  
  
      setupActionBarWithNavController(navController, appBarConfiguration)
      drawer_menu_body.setupWithNavController(navController)
      nv_top.setupWithNavController(navController)
  }
  
  override fun onNavigationItemSelected(menu: MenuItem): Boolean {
      Log.d("testing_navigation","testing_navigation")
      drawer_layout.closeDrawer(GravityCompat.START)
      return true
  }
  </code></pre>