Skip to content

StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.

fix: preserve shell focus stacking

David Nashashd2a9a69bf348
diff --git a/core/ui/src/main/java/com/streamvault/core/ui/components/shell/AppShellVisuals.kt b/core/ui/src/main/java/com/streamvault/core/ui/components/shell/AppShellVisuals.kt
index b9ea5385..260121cb 100644
--- a/core/ui/src/main/java/com/streamvault/core/ui/components/shell/AppShellVisuals.kt
+++ b/core/ui/src/main/java/com/streamvault/core/ui/components/shell/AppShellVisuals.kt
@@ -52,6 +52,7 @@ import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
+import androidx.compose.ui.zIndex
import androidx.tv.material3.Border
import androidx.tv.material3.ClickableSurfaceDefaults
import androidx.tv.material3.Icon
@@ -373,6 +374,7 @@ private fun TopNavigationButton(
scaleX = scale
scaleY = scale
}
+ .zIndex(if (isFocused) 1f else 0f)
.onFocusChanged {
if (it.isFocused && !isFocused) sounds.playNavigate()
isFocused = it.isFocused