Join Slack
Powered by
I'm wondering are there any disadvantages of injec...
# android
a
Ahmed Ibrahim
04/04/2020, 2:50 PM
I'm wondering are there any disadvantages of injecting dependencies in
onCreate
of Fragments rather than
onAttach
? The problem is that things like
SavedStateRegistry
won't be initialized if I tried to use it like calling
consumeRestoredStateForKey
during
onAttach
google
1
stackoverflow
1
Open in Slack
Previous
Next