Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am unable to inject main activity in base fragment #2

Closed
droidwithme opened this issue Jun 10, 2020 · 1 comment
Closed

I am unable to inject main activity in base fragment #2

droidwithme opened this issue Jun 10, 2020 · 1 comment
Assignees
Labels
help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested

Comments

@droidwithme
Copy link

How can i inject main activity in fragment?

@Inject
lateinit var mainActivity: MainActivity

@Drjacky
Copy link
Owner

Drjacky commented Jun 10, 2020

This question is not related to my Github project. Please ask it on Stackoverflow.

Anyway, the context of question is wrong. You have access to activity with this/activity/context keywords in the fragment.

@Drjacky Drjacky closed this as completed Jun 10, 2020
@Drjacky Drjacky self-assigned this Jun 10, 2020
@Drjacky Drjacky added help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested labels Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants