Skip to content

Commit 169d343

Browse files
1. Fix Jetpack compose preview of CallContentPreview (#1251)
Co-authored-by: Aleksandar Apostolov <[email protected]>
1 parent 5e75aa2 commit 169d343

File tree

1 file changed

+10
-1
lines changed
  • stream-video-android-ui-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/call/renderer/internal

1 file changed

+10
-1
lines changed

stream-video-android-ui-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/call/renderer/internal/PortraitVideoRenderer.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ internal fun BoxScope.PortraitVideoRenderer(
190190
if (callParticipants.size in 2..4) {
191191
val currentLocal by call.state.me.collectAsStateWithLifecycle()
192192

193-
if (currentLocal != null || LocalInspectionMode.current) {
193+
if (currentLocal != null) {
194194
floatingVideoRenderer?.invoke(this, call, parentSize)
195195
?: DefaultFloatingParticipantVideo(
196196
call = call,
@@ -199,6 +199,15 @@ internal fun BoxScope.PortraitVideoRenderer(
199199
parentSize = parentSize,
200200
style = style,
201201
)
202+
} else if (LocalInspectionMode.current) {
203+
floatingVideoRenderer?.invoke(this, call, parentSize)
204+
?: DefaultFloatingParticipantVideo(
205+
call = call,
206+
me = callParticipants.first(),
207+
callParticipants = callParticipants,
208+
parentSize = parentSize,
209+
style = style,
210+
)
202211
}
203212
}
204213
}

0 commit comments

Comments
 (0)