feat: Back gesture should hide controls in tv module

This commit is contained in:
2026-02-27 17:42:05 +01:00
parent 2b27ce946d
commit e4b99354f6
2 changed files with 13 additions and 3 deletions

View File

@@ -203,6 +203,11 @@ class PlayerViewModel @Inject constructor(
if (_controlsVisible.value) scheduleAutoHide()
}
fun hideControls() {
_controlsVisible.value = false
autoHideJob?.cancel()
}
private fun scheduleAutoHide() {
autoHideJob?.cancel()
if (!player.isPlaying) return