Last active
March 18, 2019 17:08
-
-
Save amanjeetsingh150/75054a0fda2ec36aa869e01d831e5168 to your computer and use it in GitHub Desktop.
This file contains 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
public final class ActivityModule_ProvideMainViewModelFactory implements Factory<MainViewModel> { | |
/*Other Code*/ | |
@Override | |
public MainViewModel get() { | |
return Preconditions.checkNotNull( | |
module.provideMainViewModel(dataManagerProvider.get()), | |
"Cannot return null from a non-@Nullable @Provides method"); | |
} | |
public static Factory<MainViewModel> create( | |
ActivityModule module, Provider<DataManager> dataManagerProvider) { | |
return new ActivityModule_ProvideMainViewModelFactory(module, dataManagerProvider); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment