[Android] Fix the sleep timer reset on interaction being always on

Nicolas Pomepuy git at videolan.org
Tue Jun 11 14:50:38 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jun 10 07:43:57 2024 +0200| [9a9ee5d16c6929b9e8f26b79ac496c5fa82ad563] | committer: Nicolas Pomepuy

Fix the sleep timer reset on interaction being always on

> https://code.videolan.org/videolan/vlc-android/commit/9a9ee5d16c6929b9e8f26b79ac496c5fa82ad563
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt         | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
index 5d05141a4e..eb337b4853 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
@@ -457,6 +457,7 @@ class VideoPlayerOverlayDelegate (private val player: VideoPlayerActivity) {
     }
 
     private fun resetSleepTimer(service: PlaybackService) {
+        if (!service.resetOnInteraction) return
         val sleepTime = Calendar.getInstance()
         sleepTime.timeInMillis = System.currentTimeMillis() + service.sleepTimerInterval
         PlaybackService.playerSleepTime.value = sleepTime



More information about the Android mailing list