Skip to content

Commit d2b1452

Browse files
committed
Things
1 parent 59b77ec commit d2b1452

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/SessionGenerator.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ internal data class SessionInfo(
3737
* @hide
3838
*/
3939
internal class SessionGenerator(collectEvents: Boolean) {
40+
private var firstSessionId = ""
41+
private var sessionIndex: Int = -1
42+
private var collectEvents = collectEvents
43+
4044
private var thisSession: SessionInfo =
4145
SessionInfo(
4246
sessionId = "",
4347
firstSessionId = "",
4448
collectEvents = collectEvents,
45-
sessionIndex = -1
49+
sessionIndex = sessionIndex
4650
)
4751

48-
private var firstSessionId = ""
49-
private var sessionIndex: Int = -1
50-
private var collectEvents = collectEvents
51-
5252
// Generates a new Session ID. If there was already a generated Session ID
5353
// from the last session during the app's lifecycle, it will also set the last Session ID
5454
fun generateNewSession() {

0 commit comments

Comments
 (0)