bluelinelabs / bluelinelabs/Conductor

Controller.onAttach not called

Open
#408 0 comments 8 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.9k
Forks
338
PR merge metrics
No merged PRs in 30d

Description

When I remove (`removeView()`) my child view container from the parent, then add (`addView()`) this instance again, the Controller.onAttach() not called. Moreover `onAttachedToWindow()` in child view container is called, but in `ViewAttachHandler` onViewAttachedToWindow also not called.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the removeView() and addView() lifecycle around the child view container, then compare onAttachedToWindow() with ViewAttachHandler.onViewAttachedToWindow and Controller.onAttach(). Reproduce the reported remove-and-readd sequence and verify that both attachment callbacks are invoked after the instance is added again.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.