title: Add a navigation top level destinations in runtime
body: <p>I know how to make multiple top-level destinations for a navigation graph. Following the answers <a href="https://stackoverflow.com/questions/53372539/navigation-graph-with-multiple-top-level-destinations">here</a> is fine.</p>
  
  <p>However I want to add, based on app user's desire (e.g. a button click), another top-level destination.</p>
  
  <p>In compliance with <a href="https://developer.android.com/guide/navigation/navigation-ui#appbarconfiguration" rel="nofollow noreferrer">the documentation</a> :</p>
  
  <pre><code>//Redoing the navigation setup
  int[] itemsId = new int[ menu.size() ];
  for( int i = 0; i &lt; menu.size(); i++ ) {
      itemsId[i] = menu.getItem(i).getItemId();        
  }
  mAppBarConfiguration = new AppBarConfiguration.Builder( itemsId )
      .setDrawerLayout(drawer)
      .build();
  NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration);
  NavigationUI.setupWithNavController(navigationView, navController);
  </code></pre>
  
  <p>This piece of code was already in onCreate() of MainActivity.java file.
  Then after I add an menuItem I'm running the code again.</p>
  
  <p>After navigating, the newly added menuItem still shows the back button on the top left, instead of the hamburger stack button.</p>
  
  <p>Is what I want even possible ?
  Any ideas ?</p>
  
  <p>P.S : I'm using the basic project template "Navigation Drawer Activity" of Android (when you want to start a new project).</p>