Skip to content

Commit 62a51fc

Browse files
authored
android, session replay: fix session replay compose view parsing (#109)
1 parent 27f8287 commit 62a51fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/events/SessionReplayTarget.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ internal class SessionReplayTarget(
4646
)
4747

4848
override fun captureScreen() {
49-
val skipReplayComposeViews = runtime?.isEnabled(RuntimeFeature.SESSION_REPLAY_COMPOSE)
50-
?: RuntimeFeature.SESSION_REPLAY_COMPOSE.defaultValue
49+
val skipReplayComposeViews = !(
50+
runtime?.isEnabled(RuntimeFeature.SESSION_REPLAY_COMPOSE)
51+
?: RuntimeFeature.SESSION_REPLAY_COMPOSE.defaultValue
52+
)
5153
replayModule.captureScreen(skipReplayComposeViews)
5254
}
5355

0 commit comments

Comments
 (0)