Open vlazzle opened 7 years ago
Nice! :) Yea I planned on adding something to support this at some point this week - that looks like a good way of doing so
Hi, @hitherejoe this is not an issue but just curiosity. Kindly, could you please let me know what tool was used to create the flow charts below:
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.