title: popBackStack() is not working in android NavController
body: <p>I am using android JetPack navigation to navigate between my fragments. This is how my <code>navigation graph</code> looks like</p>
  <pre><code> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;navigation xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
  xmlns:tools=&quot;http://schemas.android.com/tools&quot;
  android:id=&quot;@+id/registration_nav_graph&quot;
  app:startDestination=&quot;@id/registrationStoreNameFragment&quot;&gt;
  
  &lt;fragment
      android:id=&quot;@+id/registrationStoreNameFragment&quot;
      android:name=&quot;com.minidukaan.android.feature.registration.view.RegistrationStoreNameFragment&quot;
      android:label=&quot;fragment_registration_store_name&quot;
      tools:layout=&quot;@layout/fragment_registration_store_name&quot; &gt;
      &lt;action
          android:id=&quot;@+id/action_registrationStoreNameFragment_to_registrationStoreUrlFragment2&quot;
          app:destination=&quot;@id/registrationStoreUrlFragment2&quot; /&gt;
  &lt;/fragment&gt;
  
  &lt;fragment
      android:id=&quot;@+id/registrationStoreUrlFragment2&quot;
      android:name=&quot;com.minidukaan.android.feature.registration.view.RegistrationStoreUrlFragment&quot;
      android:label=&quot;RegistrationStoreUrlFragment&quot; &gt;
      &lt;action
          android:id=&quot;@+id/action_registrationStoreUrlFragment2_to_registrationLocationFragment&quot;
          app:destination=&quot;@id/registrationLocationFragment&quot; /&gt;
      &lt;argument
          android:name=&quot;store_name&quot;
          app:argType=&quot;string&quot; /&gt;
      &lt;argument
          android:name=&quot;store_slug&quot;
          app:argType=&quot;string&quot; /&gt;
  &lt;/fragment&gt;
  
  
  &lt;fragment
      android:id=&quot;@+id/registrationLocationFragment&quot;
      android:name=&quot;com.minidukaan.android.feature.registration.view.RegistrationLocationFragment&quot;
      android:label=&quot;fragment_registration_location&quot;
      tools:layout=&quot;@layout/fragment_registration_location&quot; &gt;
      &lt;action
          android:id=&quot;@+id/action_registrationLocationFragment_to_registrationSuccessFragment&quot;
          app:destination=&quot;@id/registrationSuccessFragment&quot; /&gt;
      &lt;argument
          android:name=&quot;store_name&quot;
          app:argType=&quot;string&quot; /&gt;
      &lt;argument
          android:name=&quot;store_slug&quot;
          app:argType=&quot;string&quot;
          android:defaultValue=&quot;&quot;/&gt;
  &lt;/fragment&gt;
  &lt;fragment
      android:id=&quot;@+id/registrationSuccessFragment&quot;
      android:name=&quot;com.minidukaan.android.feature.registration.view.RegistrationSuccessFragment&quot;
      android:label=&quot;fragment_registration_success&quot;
      tools:layout=&quot;@layout/fragment_registration_success&quot; /&gt;
  </code></pre>
  
  <p>From <code>RegistrationStoreNameFragment</code> I navigate to <code>RegistrationStoreUrlFragment</code> like this</p>
  <pre><code>private lateinit var navController: NavController
  override fun init(savedInstanceState: Bundle?) {
      super.init(savedInstanceState)
      ....
  
      binding.lifecycleOwner = this
      navController = view?.let { Navigation.findNavController(it) }!!
      val action = RegistrationStoreNameFragmentDirections.
                          actionRegistrationStoreNameFragmentToRegistrationStoreUrlFragment2(storeName, it.slug)
                              navController.navigate(action)
  </code></pre>
  <p>}</p>
  <p>so it navigates perfectly, but when I do <code>navController.popBackStack()</code> in <code>RegistrationStoreUrlFragment</code> then it doesn't navigate back. Any help will be highly appreciated as I am stuck in this issue for a long time.</p>
  <p>For other fragments popBackStack is working fine but not for the ones mentioned above.</p>