Skip to content

Instantly share code, notes, and snippets.

@lamvann
Created July 30, 2019 16:09
Show Gist options
  • Save lamvann/9ed7785e32cf830df67e1e1581c2b805 to your computer and use it in GitHub Desktop.
Save lamvann/9ed7785e32cf830df67e1e1581c2b805 to your computer and use it in GitHub Desktop.
@Module
abstract class ActivityBindingModule {
/*
Binds PopularMoviesActivity in another module as a BaseActivity so that BaseActivity can be injected
with the objects that its subclasses will use.
Such as the AutoDisposable
*/
@ContributesAndroidInjector(modules = [MovieActivityModule::class])
abstract fun bindMovieActivity(): PopularMoviesActivity
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment