mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 08:27:04 +00:00
fix(playback): hide video controls while the error overlay is shown
Tapping the player while the codec-not-supported overlay is up would still toggle the gradients/buttons in. Gate the controls block on a clear error state so the overlay stays the only thing on screen.
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ fun RenderVideoPlayer(
|
||||
hasBlurhash = hasBlurhash,
|
||||
)
|
||||
|
||||
if (showControls) {
|
||||
if (showControls && controllerState.playbackError.value == null) {
|
||||
TopGradientOverlay(
|
||||
controllerVisible = controllerVisible,
|
||||
modifier = Modifier.align(Alignment.TopCenter),
|
||||
|
||||
Reference in New Issue
Block a user