-
Notifications
You must be signed in to change notification settings - Fork 74
Interrupt magellan transition animation when navigating between pages… #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,10 @@ internal class IntroStep( | |
| ) : Step<IntroBinding>(IntroBinding::inflate) { | ||
|
|
||
| override fun onShow(context: Context, binding: IntroBinding) { | ||
| binding.root.tag = "IntroStep" | ||
| binding.learnMore.setOnClickListener { | ||
| println("viewBinding: $viewBinding") | ||
| viewBinding!! | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this would have crashed otherwise?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| goToLearnMore() | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done