mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2026-10-26 16:45:23 +00:00
Fix dismissing in-app screensaver with remote
This commit is contained in:
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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user