You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we call Koject.start() from MainActivity.onCreate. Each time dark theme is toggled, MainActivity.onCreate being called again and so Kojact.start(). This leads to singleton dependencies created multiple times. currently my workaround is
@SuppressLint("StaticFieldLeak")
object ApplicationContextModule {
lateinit var context: Context
var start = false
@Provides
fun provideContext(): Context {
return context
}
}
Currently we call Koject.start() from MainActivity.onCreate. Each time dark theme is toggled, MainActivity.onCreate being called again and so Kojact.start(). This leads to singleton dependencies created multiple times. currently my workaround is
But it would be nice if framework itself detect these changes
The text was updated successfully, but these errors were encountered: