I find that SystemUiController is not able to chan...
# compose-android
m
I find that SystemUiController is not able to change the system bar background color as soon as I add a
NavHostFragment
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!
Copy code
<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" />