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 95c00bf commit ff16c67Copy full SHA for ff16c67
core/src/main/java/com/segment/analytics/kotlin/core/platform/Timeline.kt
@@ -71,10 +71,18 @@ internal class Timeline {
71
plugins[plugin.type]?.add(plugin)
72
with(analytics) {
73
analyticsScope.launch(analyticsDispatcher) {
74
- val systemSettings = store.currentState(System::class)?.settings
+ val systemState = store.currentState(System::class)
75
+ val systemSettings = systemState?.settings
76
systemSettings?.let {
77
// if we have settings then update plugin with it
78
plugin.update(it, Plugin.UpdateType.Initial)
79
+
80
+ if (!systemState.initialSettingsDispatched) {
81
+ store.dispatch(
82
+ System.ToggleSettingsDispatch(dispatched = true),
83
+ System::class
84
+ )
85
+ }
86
}
87
88
0 commit comments