diff --git a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/events/SessionReplayTarget.kt b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/events/SessionReplayTarget.kt index ab8f330d..06cb8591 100644 --- a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/events/SessionReplayTarget.kt +++ b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/events/SessionReplayTarget.kt @@ -46,8 +46,10 @@ internal class SessionReplayTarget( ) override fun captureScreen() { - val skipReplayComposeViews = runtime?.isEnabled(RuntimeFeature.SESSION_REPLAY_COMPOSE) - ?: RuntimeFeature.SESSION_REPLAY_COMPOSE.defaultValue + val skipReplayComposeViews = !( + runtime?.isEnabled(RuntimeFeature.SESSION_REPLAY_COMPOSE) + ?: RuntimeFeature.SESSION_REPLAY_COMPOSE.defaultValue + ) replayModule.captureScreen(skipReplayComposeViews) }