title: FragmentContainerView using findNavController
body: <p>I'm using Android Navigation Component with bottom navigation, lint gives a warning about replacing the <code>&lt;fragment&gt;</code> tag with <code>&lt;FragmentContainerView&gt;</code> but when i replaced, <code>findNavController</code> is not working it gives me error about it does not have a NavController set on</p>
  <p>Fragment</p>
  <pre><code>&lt;androidx.fragment.app.FragmentContainerView
              android:id=&quot;@+id/nav_host_fragment&quot;
              android:name=&quot;androidx.navigation.fragment.NavHostFragment&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              app:defaultNavHost=&quot;true&quot;
              app:navGraph=&quot;@navigation/mobile_navigation&quot; /&gt;
  </code></pre>
  <p>Activity</p>
  <pre><code>val navController = findNavController(R.id.nav_host_fragment)
      
      val appBarConfiguration = AppBarConfiguration(
          setOf(
              R.id.navigation_classes, R.id.navigation_schedule, R.id.navigation_settings
          )
      )
      setupActionBarWithNavController(navController, appBarConfiguration)
      navView.setupWithNavController(navController)
  }
  </code></pre>