Created
June 12, 2016 19:11
-
-
Save frogermcs/d40499eb8689e1895b5b3eef493fa4da to your computer and use it in GitHub Desktop.
ViewHolder and Dagger 2 example
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
@Module | |
public class RepositoriesListActivityModule { | |
private RepositoriesListActivity repositoriesListActivity; | |
//... | |
@Provides | |
@ActivityScope | |
RepositoriesListAdapter provideRepositoriesListAdapter(RepositoriesListActivity repositoriesListActivity) { | |
return new RepositoriesListAdapter(repositoriesListActivity); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment