Skip to content

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

fix: dismiss playback settings on PiP entry

David Nashash0a83009d96dc
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 6d695c05..695b80e3 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -25,6 +25,7 @@ All notable product changes are recorded in this document.
### Fixed
+- Fixed the VOD playback settings sheet remaining visible over picture-in-picture playback.
- Fixed live channels in custom groups showing **Add** instead of **Remove** in the channel options dialog.
- Fixed provider observation crashes on devices where saved credentials cannot be decrypted by skipping unnecessary credential decryption in public provider projections.
- Fixed successful new-provider setup staying on Add Provider; new providers now navigate to Home, while edits return to the previous screen.
diff --git a/feature/playback/src/main/java/com/streamvault/feature/playback/player/PlayerScreen.kt b/feature/playback/src/main/java/com/streamvault/feature/playback/player/PlayerScreen.kt
index 98e46ea2..6f7c8db3 100644
--- a/feature/playback/src/main/java/com/streamvault/feature/playback/player/PlayerScreen.kt
+++ b/feature/playback/src/main/java/com/streamvault/feature/playback/player/PlayerScreen.kt
@@ -201,6 +201,13 @@ fun PlayerScreen(
var channelInfoSubPanelOpen by remember { mutableStateOf(false) }
var showClosePlaybackConfirmation by rememberSaveable { mutableStateOf(false) }
var closePlaybackConfirmationOpenedAtMs by remember { mutableStateOf(0L) }
+
+ LaunchedEffect(isInPictureInPictureMode) {
+ if (isInPictureInPictureMode) {
+ modalState = modalState.dismiss()
+ showClosePlaybackConfirmation = false
+ }
+ }
val focusRequester = remember { FocusRequester() }
val channelListFocusRequester = remember { FocusRequester() }