Skip to content

Conversation

@Kritarie
Copy link
Contributor

@Kritarie Kritarie commented Oct 15, 2025

… to ensure intercept touch events is set and reset properly.

Screen_recording_20251014_220049.mp4

… to ensure intercept touch events is set and reset properly.
@Kritarie Kritarie requested a review from cmathew October 15, 2025 02:07
binding.root.tag = "IntroStep"
binding.learnMore.setOnClickListener {
println("viewBinding: $viewBinding")
viewBinding!!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would have crashed otherwise?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this bit now, but yes it was for reproducing a sneaky crash caused by triggering a button click during the transition animation. The transition is a critical moment where the outbound step has been moved to a Hidden state, and so the viewBinding property will return null, but the Step's View is still attached to the window and animating out for a short time. Any input event listeners still attached to that View are still active

direction: Direction,
backStackOperation: (Deque<NavigationEvent>) -> MagellanTransition
) {
activeTransition?.interrupt()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null out activeTransition after this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

… as a function of the distance the from / to views need to travel.
@Kritarie Kritarie merged commit 1c26b8e into master Oct 21, 2025
2 checks passed
@Kritarie Kritarie deleted the interrupt-animation branch October 21, 2025 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants