Fix dismissing in-app screensaver with remote

This commit is contained in:
Niels van Velzen authored and Niels van Velzen committed 2026-03-28 15:32:38 +01:00
1 parent 64f3bdac41
commit 1f8cfa0f30
1 file changed
+5
@@ -12,6 +12,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.input.key.onKeyEvent
import org.jellyfin.androidtv.integration.dream.composable.DreamHost
import org.jellyfin.androidtv.ui.InteractionTrackerViewModel
import org.jellyfin.androidtv.ui.base.dialog.DialogBase
@@ -38,6 +39,10 @@ fun InAppScreensaver() {
) {
interactionTrackerViewModel.notifyInteraction(canCancel = true, userInitiated = false)
}
.onKeyEvent {
interactionTrackerViewModel.notifyInteraction(canCancel = true, userInitiated = true)
false
}
) {
DreamHost()
}