using dagger2 would it be wise to inject adapters ...
# android
t
using dagger2 would it be wise to inject adapters (passing the viewmodelprovider) into a viewmodel and call it from there in the fragment/activity instead injecting it in the activity/fragment itself? (reason from someone else being some configuration change bug) ..not sure if this seems more plausible then normal injection in the activity/fragment?
a
Injecting adapters… as in RecyclerView adapters, or class adapters? Since there shouldn’t be any View classes in any ViewModels.
t
as in recyclerview adapters in this case
would kind of violate how mvvm was meant to be