my viewmodel-savestate version is
implementation 'androidx.lifecycle:lifecycle-viewmodel-savedstate:1.0.0-alpha03'
in version 1.0.0-alpha01 ,i can use
MyViewModel myVM = new ViewModelProvider(this, new SavedStateVMFactory(this)).get(MyVM.class);
to create viewmodel with savestate, but in version 1.0.0-alpha03 ,
SavedStateVMFactory
cant work , i need to use new SavedStateViewModelFactory
but i dont konw what is the second params means,
the code may look like this below:
myVM = new ViewModelProvider(this, new SavedStateViewModelFactory(getApplication(),xxxxxxx)).get(MyVM.class);
and i cant find any document about this in android developer website, sad