Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 27, 2017 11:24
Show Gist options
  • Save vestrel00/4216da9e860203fb00f4586e4c240bcb to your computer and use it in GitHub Desktop.
Save vestrel00/4216da9e860203fb00f4586e4c240bcb to your computer and use it in GitHub Desktop.
A: 7 - ui/example_2/Example2ActivityModule.java
@Module(includes = BaseActivityModule.class,
subcomponents = {
Example2AFragmentSubcomponent.class,
Example2BFragmentSubcomponent.class
})
abstract class Example2ActivityModule {
// TODO (ContributesAndroidInjector) remove this in favor of @ContributesAndroidInjector
@Binds
@IntoMap
@FragmentKey(Example2AFragment.class)
abstract AndroidInjector.Factory<? extends Fragment>
example2AFragmentInjectorFactory(Example2AFragmentSubcomponent.Builder builder);
// TODO (ContributesAndroidInjector) remove this in favor of @ContributesAndroidInjector
@Binds
@IntoMap
@FragmentKey(Example2BFragment.class)
abstract AndroidInjector.Factory<? extends Fragment>
example2BFragmentInjectorFactory(Example2BFragmentSubcomponent.Builder builder);
@Binds
@PerActivity
abstract Activity activity(Example2Activity example2Activity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment