title: Cannot navigate to another Activity with Navigation Component
body: <p>I'm trying to navigate to another activity (login) using Navigation Component.</p>
  <p>Currently <code>Activity_1</code> has <code>navGraph1</code> and <code>Activity_2</code> has <code>navGraph2</code>.</p>
  <p>I've put a destination in <code>navGraph1</code> for <code>Activity_2</code>. When I navigate, I get a blank screen, despite <code>Activity_2</code> having a nav graph with a starting destination for another fragment.</p>
  <p><code>onCreate</code> is not being called, or is at least not being hit by my breakpoint in <code>Activity_2</code>.</p>
  <p>When I nest <code>navGraph2</code> in <code>navGraph1</code>, I can navigate to the starting destination fragment in <code>navGraph2</code>. This starting destination in <code>navGraph2</code> is in <code>compose</code>. <code>Activity_1</code> seems to bypass <code>Activity_2</code> and hosts the fragment directly. However, I'd like <code>Activity_2</code> to host it since navigating to <code>Activity_2</code> can display more like a pop up modal, hiding things like the bottom nav bar.</p>
  <p>I'm not sure what's going on here.</p>
  <pre><code>&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/nav_graph&quot;
      app:startDestination=&quot;@id/startFragment1&quot;&gt;
  
      &lt;activity
          android:id=&quot;@+id/Activity2&quot;
          android:name=&quot;com.example.Activity2&quot;
          android:label=&quot;Activity2&quot; /&gt;
  
  &lt;/navigation&gt;
  
  // in Activity 1
  navController.navigate(R.id.activity2)
  </code></pre>
  <p>Activity 2</p>
  <pre><code>&lt;navigation xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:id=&quot;@+id/nav_graph_2&quot;
      app:startDestination=&quot;@id/startFragment2&quot;&gt;
  
      &lt;fragment
          android:id=&quot;@+id/startFragment2&quot;
          android:name=&quot;com.example.StartFragment2&quot;
          android:label=&quot;StartFragment2&quot; /&gt;
  
  &lt;/navigation&gt;
  
  class Activity2 : AppCompatActivity() {
      override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
          super.onCreate(savedInstanceState, persistentState)
          setContentView(R.layout.activity2)
      }
  }
  
  // Layout activity 2
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;androidx.fragment.app.FragmentContainerView
          android:id=&quot;@+id/fragmentContainerView&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/nav_graph_2&quot; /&gt;
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>