bluelinelabs / bluelinelabs/Conductor

onAttach not called if backpressed during transition animation of next controller

Open
#548 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
3.9k
Forks
338
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.