title: Android dagger hilt
body: <p>I have one class NavigationController which requires an activity instance all of my fragment are hosted through these activity.</p>
  <pre><code>class NavigationController constructor(private val activity: MainActivity) {
      
      fun navigateToAuth() {
          activity.supportFragmentManager
              .beginTransaction()
              .replace(R.id.main_container,WelcomeFrag())
              .commitAllowingStateLoss()
      }
  }
  </code></pre>
  <p>And here is my NavigationModule</p>
  <pre><code>@InstallIn(ApplicationComponent::class)
  
  @Module
  object NavigationModule {
      @Provides
      fun providesNavigationModule(activity: MainActivity): NavigationController {
          return NavigationController(activity)
      }
  }
  </code></pre>
  <p>But i'm getting Error as MainActivity cannot be provided requires @Inject or @Provides
  I know dagger doesnt know how to create MainActivity as it doesnt have constructor i cannot inject it</p>
  <p>So how could i get activity and pass it to my NavigationController ?</p>