title: You must call setGraph() before calling getGraph()
body: <p>I have bottom Navigation also I'm replaced the <code>&lt;fragment&gt;</code> tag with <code>FragmentContainerView</code> it gives me error about it does not have a NavController set on, then i was posted <a href="https://stackoverflow.com/questions/59275009/fragmentcontainerview-using-findnavcontroller/59275182?noredirect=1#comment104757841_59275182">this</a> question and fixed the problem, but I got this below error when orientation is changed and selecting item in Bottom Navigation</p>
  <blockquote>
  <p>java.lang.IllegalStateException: You must call setGraph() before calling getGraph()</p>
  </blockquote>
  <p>FragmentContainer</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; /
  </code></pre>
  <p>finding fragment</p>
  <pre><code>val navHostFragment = supportFragmentManager.findFragmentById(R.id.nav_host_fragment) as NavHostFragment
      val navController = navHostFragment.navController
      // Passing each menu ID as a set of Ids because each
      // menu should be considered as top level destinations.
      val appBarConfiguration = AppBarConfiguration(
          setOf(
              R.id.navigation_classes, R.id.navigation_schedule, R.id.navigation_settings
          )
      )
      setupActionBarWithNavController(navController, appBarConfiguration)
      navView.setupWithNavController(navController)
  </code></pre>