Flow.get() throws IllegalStateException before `onPostCreate()`
Zhuinden opened this issue · comments
Gabor Varadi commented
Consider a way to obtain the instances in the context wrapper without relying on the retained fragment.
Gabor Varadi commented
This came up in:
- AsyncTask, where
onPostExecute()
is called afterInternalLifecycleIntegration
is already detached Context.getSystemService()
callingserviceProvider
to see if it exists beforeonPostCreate()
: Zhuinden/ExampleGithubClient#1
Gabor Varadi commented
The first half should be fixed by 40ee88d
Gabor Varadi commented
The second half should be fixed by 94faa27
Gabor Varadi commented
....Flow cannot exist before onActivityCreated()
if Flow is installed into the Activity installed by the Fragment.
Welp.
Gabor Varadi commented
wontfix unless we go back to delegate, in which case services should be separated, in which case there is no point to this lib.