[Android] Fix video player HUD timeout when using the progress bar
Nicolas Pomepuy
git at videolan.org
Tue May 16 08:11:41 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue May 16 07:34:19 2023 +0200| [0115078ce5cb83839ec390533ea43140fb2062a4] | committer: Nicolas Pomepuy
Fix video player HUD timeout when using the progress bar
Fixes #2934
> https://code.videolan.org/videolan/vlc-android/commit/0115078ce5cb83839ec390533ea43140fb2062a4
---
.../src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 4942c05679..f18434c13a 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
@@ -442,11 +442,12 @@ class VideoPlayerOverlayDelegate (private val player: VideoPlayerActivity) {
if (!player.displayManager.isPrimary)
overlayBackground.setVisible()
updateOverlayPausePlay(true)
+ player.handler.removeMessages(VideoPlayerActivity.FADE_OUT)
} else {
+ player.handler.removeMessages(VideoPlayerActivity.FADE_OUT)
if (overlayTimeout != VideoPlayerActivity.OVERLAY_INFINITE)
player.handler.sendMessageDelayed(player.handler.obtainMessage(VideoPlayerActivity.FADE_OUT), overlayTimeout.toLong())
}
- player.handler.removeMessages(VideoPlayerActivity.FADE_OUT)
}
}
More information about the Android
mailing list