mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
feat: Back gesture should hide controls in tv module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user