Status Update
Comments
il...@google.com <il...@google.com> #2
You might consider starring the
er...@gmail.com <er...@gmail.com> #3
Isn't it a good solution to block touch interactions with the screen when the transition starts?
il...@google.com <il...@google.com> #4
Everything in Compose is 'live' all of the time, as per that duplicate issue. It would be up to you to block what you want to block.
Description
Component used: Navigation Compose
Version used:
2.7.6
Devices/Android versions reproduced on: All
In my app's settings screen, there is an icon button that allows the user to return to the previous page. I have implemented this functionality using the
navController.popBackStack
statement in theonClick
callback. However, I have observed that if the user taps the button twice quickly, the pop operation is performed twice while this behavior is not seen in the ViewSystem version.I figured out that to solve this problem, we must declare the Route we want to remove from the Backstack.
Screen_recording_20240107_130831.webm -https://drive.google.com/file/d/1GfDXZYP0kg--jJc1V0bEQgcUV6_D-WKF/view?usp=drive_web