Svetlozar Kostadinov
1 min readJul 12, 2016

--

I think there is an even simpler way to reproduce the problem. Or at least that’s what led me to this article. I have fragment built in the activity xml. This calls Activity.setContentView() -> Fragment.onCreate() before activity component is initialized.
Btw, what’s the deal with setRetainInstance(). I never use it. Would I have problems because of that?

--

--