You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably not a big deal right now since there's currently just one ViewModel subclass, but it's still worth noting...
Right now BrowseBufferoosViewModelFactory only supports one ViewModel subclass--BrowseBufferoosViewModel. If you define a second subclass of ViewModel, calling ViewModelProviders.of(this, viewModelFactory).get(SecondViewModel::class.java) will throw IllegalArgumentException: Unknown ViewModel class.
One way to address this is to have BrowseBufferoosViewModelFactory fetch a Provider<ViewModel> from the multibound map using modelClass as the key. Further details.
The text was updated successfully, but these errors were encountered:
This is probably not a big deal right now since there's currently just one ViewModel subclass, but it's still worth noting...
Right now
BrowseBufferoosViewModelFactory
only supports one ViewModel subclass--BrowseBufferoosViewModel
. If you define a second subclass of ViewModel, callingViewModelProviders.of(this, viewModelFactory).get(SecondViewModel::class.java)
will throwIllegalArgumentException: Unknown ViewModel class
.One way to address this is to have
BrowseBufferoosViewModelFactory
fetch aProvider<ViewModel>
from the multibound map usingmodelClass
as the key. Further details.The text was updated successfully, but these errors were encountered: