Skip to content

Instantly share code, notes, and snippets.

@princessdharmy
Created November 21, 2020 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save princessdharmy/8e5abdcc784ce0b7e5c836ccb84736ec to your computer and use it in GitHub Desktop.
Save princessdharmy/8e5abdcc784ce0b7e5c836ccb84736ec to your computer and use it in GitHub Desktop.
@AndroidEntryPoint
class CompetitionsFragment : BaseFragment() {
...
/**
* This should be deleted as it's no longer needed
*/
override fun onAttach(context: Context) {
super.onAttach(context)
// Inject dagger here
DaggerCompetitionComponent.factory().create(coreComponent()).inject(this)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment