scottiedog45
08/08/2019, 1:20 AMsingleLargeTextInputViewModel = ViewModelProviders.of(this, SingleLargeInputViewModel.FACTORY(NetworkService())).get(
SingleLargeInputViewModel::class.java
)
) “know” (????) that a view model already exists? Or would it?Adam Powell
08/08/2019, 1:28 AMViewModelStore
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 youAdam Powell
08/08/2019, 1:31 AMscottiedog45
08/08/2019, 1:50 AM