title: Dagger 2.26 field injection into application failed
body: <p>When I try to inject app crashing with lateinit property ... has not been initialized exception. I understand I have to inject my app into graph, but I do not succeed in that. What is the best way to do this? </p>
  
  <pre><code>class App : Application() {
  
      @Inject
      lateinit var localeManager: Lazy&lt;LocaleManager&gt;
  
      val appComponent: AppComponent by lazy {
          DaggerAppComponent.factory().create(applicationContext)
      }
  
      override fun attachBaseContext(base: Context) {
          super.attachBaseContext(localeManager.get().setLocale(base))
      }
  
      override fun onConfigurationChanged(newConfig: Configuration) {
          super.onConfigurationChanged(newConfig)
          localeManager.get().setLocale(this)
      }
  }
  
  @Singleton
  @Component(modules = [NetworkModule::class, AppSubcomponents::class])
  interface AppComponent {
      @Component.Factory
      interface Factory {
          fun create(@BindsInstance context: Context): AppComponent
      }
  
      fun registrationComponent(): RegistrationComponent.Factory
      fun lobbyComponent(): PropertyComponent.Factory
      fun supplierComponent(): SupplierComponent.Factory
      fun notificationComponent(): NotificationComponent.Factory
      fun serviceComponent(): ServiceComponent.Factory
      fun settingsComponent() : SettingsComponent.Factory
      fun cardComponent() : CardComponent.Factory
  
      fun inject(activity: MainActivity)
  
  }
  
  class LocaleManager @Inject constructor(val storage: UserStorage) {
     //some code 
  }
  </code></pre>