) “know” (????) that a view model already exists? Or would it?
a
Adam Powell
08/08/2019, 1:28 AM
it fetches the
ViewModelStore
from the activity or fragment you gave it, which is tied into the nonConfigurationInstance mechanism of activity recreation. It just passes a map from old to new activity instance and stores viewmodels for you