We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac026ec commit dcc140bCopy full SHA for dcc140b
core/src/main/java/com/segment/analytics/kotlin/core/Analytics.kt
@@ -54,7 +54,7 @@ open class Analytics protected constructor(
54
)
55
}
56
57
- internal lateinit var userInfo: UserInfo
+ internal var userInfo: UserInfo = UserInfo.defaultState(storage)
58
59
companion object {
60
var debugLogsEnabled: Boolean = false
@@ -105,7 +105,6 @@ open class Analytics protected constructor(
105
analyticsScope.launch(analyticsDispatcher) {
106
store.also {
107
// load memory with initial value
108
- userInfo = UserInfo.defaultState(storage)
109
it.provide(userInfo)
110
it.provide(System.defaultState(configuration, storage))
111
0 commit comments