I am using 2 bottom navigation views and both have separate nav graphs and a different navGraph for auth-related fragments. So I have 3 activities in-app and multiple fragments The navigation component is not going back to the previous fragment on the back press, it reloads the current fragment again and again. Is there any better approach for this and how can I change its behavior.
<fragment
android:id="@+id/fragNavHost"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@+id/bottomNavView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/bottom_nav_graph" />