bluelinelabs / bluelinelabs/Conductor
onCreateView is not called in Controller
- Dominant language
- Java
- Stars
- 3.9k
- Forks
- 338
- PR merge metrics
- No merged PRs in 30d
Description
I run into a situation where we have parent activity with 2 Controllers (as tabs) in it and we open "transparent" activity on top of it to show video or image (as detail screen). So what happens is when I quit application (home button) with detail activity and screen still above it, and come back and rotate device - views of 2 tabs (screens) of parent activities are destroyed and onCreateView in never called, but onActivityResumed called instead. So when I leave the detail activity (back button), I come back to white screen as view have not been recreated. So my question is - why onCreateView is not called in screens in parent activity and how do I deal with it? Thank you .
Contributor guide
Research direction
Start by reproducing the reported parent activity with two tab Controllers, a transparent detail activity, backgrounding, returning, and rotating the device. Trace the lifecycle entry points named in the report, onCreateView and onActivityResumed, to determine why the tab views are not recreated. Done means the tabs no longer return to a white screen after leaving the detail activity.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100