[Android] Prevent hud hiding if the delay is set to infinite
Nicolas Pomepuy
git at videolan.org
Thu May 19 14:05:39 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu May 19 15:36:39 2022 +0200| [f4ccd4d17b0dd8767c1c96f3ccbddeeae93a500c] | committer: Nicolas Pomepuy
Prevent hud hiding if the delay is set to infinite
> https://code.videolan.org/videolan/vlc-android/commit/f4ccd4d17b0dd8767c1c96f3ccbddeeae93a500c
---
.../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index c574b0d46..7cba64d0b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -1440,7 +1440,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
stopLoading()
overlayDelegate.updateOverlayPausePlay()
updateNavStatus()
- if (!mw.hasFlag(MediaWrapper.MEDIA_PAUSED))
+ if (!mw.hasFlag(MediaWrapper.MEDIA_PAUSED) && Settings.videoHudDelay != 0)
handler.sendEmptyMessageDelayed(FADE_OUT, Settings.videoHudDelay.toLong() * 1000)
else {
mw.removeFlags(MediaWrapper.MEDIA_PAUSED)
@@ -1734,7 +1734,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
overlayDelegate.showOverlayTimeout(OVERLAY_INFINITE)
pause()
} else {
- handler.sendEmptyMessageDelayed(FADE_OUT, 300L)
+ if (Settings.videoHudDelay != 0) handler.sendEmptyMessageDelayed(FADE_OUT, 300L)
play()
}
}
More information about the Android
mailing list