I'm wondering are there any disadvantages of injec...
# android
a
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