conference-app-2024 icon indicating copy to clipboard operation
conference-app-2024 copied to clipboard

Prevent multiple transitions

Open kosenda opened this issue 6 months ago • 8 comments

OverVIew

I thought it would be good if it could be prevented because tapping the transitionable buttons at the same time causes a transition to each screen.

https://github.com/user-attachments/assets/dc5cbc8e-b9b0-4d1c-892c-5bbd9338f492

Ref

  • I think that this can be somewhat easily prevented by using dropUnlessResumed in androidx.lifecycle:lifecycle-runtime-compose.
    • https://developer.android.com/reference/kotlin/androidx/lifecycle/compose/package-summary#dropUnlessResumed(androidx.lifecycle.LifecycleOwner,kotlin.Function0)

kosenda avatar Aug 11 '24 14:08 kosenda