Zoltan Demant
09/03/2022, 12:25 PMste
09/03/2022, 1:05 PMIan Lake
09/05/2022, 2:21 AMcollectAsStateWithLifecycle takes a Lifecycle.State so you could set that to RESUMED (instead of its default STARTED ) to avoid updating your state while the animation is running - the Navigation Component synchronously moves the state of a screen down to STARTED when you call navigateZoltan Demant
09/05/2022, 5:52 AMIan Lake
09/05/2022, 2:59 PMLifecycleOwner, which is something the Navigation Component provides for you, but the code to actually compute the updated lifecycle after a navigate call is at https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:navigation/navigation-runtime/src/main/java/androidx/navigation/NavController.kt;l=927Ian Lake
09/05/2022, 3:00 PMZoltan Demant
09/05/2022, 3:25 PM