title: NavController destination unknown using BottomNavigation
body: <p>I'm using BottomNavigation in the main menu class to cycle through Fragments in the main screen. The weird thing about this is my app crashes because NavController doesn't find the destination in one of four fragments. MainMenuFragment is not the same as MainMenu (activity containing the fragment and NavHostFragment). Any idea why this is happening? </p>
  
  <p>NavGraph: <a href="http://prntscr.com/pcfufk" rel="nofollow noreferrer">http://prntscr.com/pcfufk</a> </p>
  
  <p>Activity (MainMenu.java) screen <a href="http://prntscr.com/pcgcnv" rel="nofollow noreferrer">http://prntscr.com/pcgcnv</a></p>
  
  <p><strong>In MainMenu.java:</strong></p>
  
  <pre><code>private BottomNavigationView.OnNavigationItemSelectedListener listener = new BottomNavigationView.OnNavigationItemSelectedListener() {
          @Override
          public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
              Bundle args = new Bundle();
              switch (menuItem.getItemId()) {
                  case R.id.addorder:
                      args.putString("UID", UID);
                      controller.navigate(R.id.action_mainMenuFragment_to_addOrderFragment, args);
                      break;
                  case R.id.addcust:
                      bundle.putString("UID", UID);
                      controller.navigate(R.id.action_mainMenuFragment_to_addCustomerFragment);
                      break;
                  case R.id.barcodeScan:
                      controller.navigate(R.id.action_mainMenuFragment_to_addProductFragment);
                      break;
                  case R.id.home:
                      bundle.putString("UID", UID);
                      if (controller.getCurrentDestination() != null &amp;&amp; controller.getCurrentDestination().getId() == R.id.mainMenuFragment) {
                          controller.navigate(R.id.mainMenuFragment, bundle);
                      }
                      break;
              }
              return true;
          }
      };
  </code></pre>
  
  <p><strong>onCreate in MainMenu.java:</strong></p>
  
  <pre><code>bundle.putString("UID", UID);
          controller = Navigation.findNavController(this, R.id.fragment_container);
          controller.navigate(R.id.mainMenuFragment, bundle);
  </code></pre>
  
  <p><strong>NavGraph xml</strong></p>
  
  <pre><code>&lt;navigation 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/navigation_mainmenu"
      app:startDestination="@id/mainMenuFragment"&gt;
  
      &lt;fragment
          android:id="@+id/addCustomerFragment"
          android:name="com.google.android.gms.samples.vision.barcodereader.fragments.customer.addCustomerFragment"
          android:label="addcustomerfragment"
          tools:layout="@layout/addcustomerfragment" /&gt;
      &lt;fragment
          android:id="@+id/mainMenuFragment"
          android:name="com.google.android.gms.samples.vision.barcodereader.fragments.mainmenu.mainMenuFragment"
          android:label="mainmenufragment"
          tools:layout="@layout/mainmenufragment"&gt;
          &lt;action
              android:id="@+id/action_mainMenuFragment_to_addProductFragment"
              app:destination="@id/addProductFragment"
              app:enterAnim="@anim/fui_slide_in_right"
              app:exitAnim="@anim/fui_slide_out_left"
              app:popExitAnim="@anim/fui_slide_out_left"
              app:popUpTo="@+id/mainMenuFragment" /&gt;
          &lt;action
              android:id="@+id/action_mainMenuFragment_self"
              app:destination="@id/mainMenuFragment" /&gt;
  
          &lt;action
              android:id="@+id/action_mainMenuFragment_to_addOrderFragment"
              app:destination="@id/addOrderFragment"
              app:enterAnim="@anim/fui_slide_in_right"
              app:exitAnim="@anim/fui_slide_out_left"
              app:popUpTo="@+id/mainMenuFragment" /&gt;
          &lt;argument
              android:name="UID"
              app:argType="string"
              app:nullable="false" /&gt;
          &lt;action
              android:id="@+id/action_mainMenuFragment_to_addCustomerFragment"
              app:destination="@id/addCustomerFragment"
              app:enterAnim="@anim/fui_slide_in_right"
              app:exitAnim="@anim/fui_slide_out_left"
              app:popUpTo="@+id/navigation_mainmenu" /&gt;
      &lt;/fragment&gt;
      &lt;fragment
          android:id="@+id/addProductFragment"
          android:name="com.google.android.gms.samples.vision.barcodereader.fragments.products.addProductFragment"
          android:label="addproductfragment"
          tools:layout="@layout/addproductfragment" /&gt;
      &lt;fragment
          android:id="@+id/additionalInfoFragment"
          android:name="com.google.android.gms.samples.vision.barcodereader.fragments.orders.additionalInfoFragment"
          android:label="addinfofragment"
          tools:layout="@layout/addinfofragment"&gt;
          &lt;argument
              android:name="UID"
              app:argType="string" /&gt;
      &lt;/fragment&gt;
      &lt;fragment
          android:id="@+id/addOrderFragment"
          android:name="com.google.android.gms.samples.vision.barcodereader.fragments.orders.addOrderFragment"
          android:label="choosecustomerfragment"
          tools:layout="@layout/choosecustomerfragment"&gt;
          &lt;action
              android:id="@+id/action_addOrderFragment_to_additionalInfoFragment"
              app:destination="@id/additionalInfoFragment"
              app:enterAnim="@anim/fui_slide_in_right"
              app:exitAnim="@anim/fui_slide_out_left"
              app:popUpTo="@+id/mainMenuFragment" /&gt;
          &lt;argument
              android:name="UID"
              app:argType="string" /&gt;
      &lt;/fragment&gt;
  </code></pre>