File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
firebase-sessions/src/main/kotlin/com/google/firebase/sessions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,6 @@ internal constructor(
104
104
}
105
105
106
106
private suspend fun initiateSessionStart (sessionDetails : SessionDetails ) {
107
- if (! sessionSettings.sessionsEnabled) {
108
- Log .d(TAG , " Sessions SDK disabled. Events will not be sent." )
109
- return
110
- }
111
-
112
107
val subscribers = FirebaseSessionsDependencies .getRegisteredSubscribers()
113
108
114
109
if (subscribers.isEmpty()) {
@@ -131,6 +126,11 @@ internal constructor(
131
126
132
127
Log .d(TAG , " Data Collection is enabled for at least one Subscriber" )
133
128
129
+ if (! sessionSettings.sessionsEnabled) {
130
+ Log .d(TAG , " Sessions SDK disabled. Events will not be sent." )
131
+ return
132
+ }
133
+
134
134
if (! sessionGenerator.collectEvents) {
135
135
Log .d(TAG , " Sessions SDK has sampled this session" )
136
136
return
You can’t perform that action at this time.
0 commit comments