Merge pull request #1803 from vector-im/julioromano/app_lateinit
Remove lateinit from Application class
This commit is contained in:
commit
40ea49adf6
1 changed files with 1 additions and 5 deletions
|
|
@ -27,14 +27,10 @@ import io.element.android.x.initializer.TracingInitializer
|
|||
|
||||
class ElementXApplication : Application(), DaggerComponentOwner {
|
||||
|
||||
private lateinit var appComponent: AppComponent
|
||||
|
||||
override val daggerComponent: Any
|
||||
get() = appComponent
|
||||
override val daggerComponent: AppComponent = DaggerAppComponent.factory().create(this)
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
appComponent = DaggerAppComponent.factory().create(applicationContext)
|
||||
AppInitializer.getInstance(this).apply {
|
||||
initializeComponent(CrashInitializer::class.java)
|
||||
initializeComponent(TracingInitializer::class.java)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue