Modern Apps git

← Modern-Apps.git

communicate: keep the self-view above the remote video surface

Commit
9978ea96933cb86c6344e5448ec5b4f19e1a1f9f
Author
vayun-mathur <[email protected]>
When
2026-08-23 03:51 UTC (3 months ago)
Parents
41df2a7

Diff

communicate/src/main/java/com/vayunmathur/communicate/ui/call/InAppCallScreen.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/ui/call/InAppCallScreen.kt b/communicate/src/main/java/com/vayunmathur/communicate/ui/call/InAppCallScreen.ktindex 32ebf19114..e8323ade9e 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/ui/call/InAppCallScreen.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/ui/call/InAppCallScreen.kt@@ -507,6 +507,10 @@ private fun SelfView(                     init(eglContext, null)                     setScalingType(RendererCommon.ScalingType.SCALE_ASPECT_FILL)                     setMirror(true)+                    // Both renderers are SurfaceViews, which the system composites as their own layers+                    // rather than in Compose's draw order. Without this the full-screen remote view covers+                    // the self-view the moment it appears — i.e. exactly when the call is answered.+                    setZOrderMediaOverlay(true)                 }             },             modifier = Modifier.fillMaxSize(),