Created
March 19, 2019 11:37
-
-
Save Nimrodda/a02a0e0c81a26388578a75c34ad3bf3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
public abstract class DetailModule { | |
@Binds | |
@IntoMap | |
@ViewModelKey(DetailViewModel.class) | |
abstract ViewModelAssistedFactory<? extends ViewModel> bindFactory(DetailViewModel.Factory factory); | |
@Binds | |
abstract SavedStateRegistryOwner bindSavedStateRegistryOwner(DetailActivity detailActivity); | |
@Nullable | |
@Provides | |
static Bundle provideDefaultArgs() { | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment