Skip to content
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

onAttach not called if backpressed during transition animation of next controller #548

Open
ursusursus opened this issue Jun 19, 2019 · 1 comment

Comments

@ursusursus
Copy link

ursusursus commented Jun 19, 2019

Hi,
I use onAttach to tint statusbar per Controller.

normal behavior:
controllerB.onAttach
controllerA.onDetach

However I do observe this when I press back during transition animation

controllerB.onAttach
controllerB.onDetach

so my previous' controllerB onAttach doesn't get called (or any other callback on B), so I wont tint my statusbar, and controllerA's tint is still displayed

Its reproducable with any changeHandler, for example

RouterTransaction.with(controller)
    .pushChangeHandler(FadeChangeHandler(2500))
    .popChangeHandler(FadeChangeHandler(2500))

This seems like a bug, is it intended? Any workarounds please?

@krakz999
Copy link

Same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants