can I find a fragment in the backstack with its id? This:
Copy code
private fun NavHostFragment.hasDestinationInBackstack(destinationId: Int): Boolean {
for (index in 0 until childFragmentManager.backStackEntryCount) {
if (childFragmentManager.getBackStackEntryAt(index).id == destinationId) {
return true
}
}
return false
}