Mini
11/06/2023, 11:42 AMNavHostFragment
to my MainActivity
If I attach my main fragment (that requests the system bar change) directly to the activity it works fine, but the second I add this XML to my activity the system bar is black - even if I don't interact further with the NavHost
Would appreciate any input on this!
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/spacer"
app:layout_constraintBottom_toBottomOf="parent"
app:defaultNavHost="true"
android:background="@color/red_300"
app:navGraph="@navigation/nav_graph" />