Merge pull request #7185 from FineFindus/fix/sb-video-end

fix(Player): hide sponsorblock skip button on video end
This commit is contained in:
Bnyro 2025-03-10 20:28:36 +01:00 committed by GitHub
commit 9a6d3a869c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -273,6 +273,7 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
// check if video has ended, next video is available and autoplay is enabled/the video is part of a played playlist. // check if video has ended, next video is available and autoplay is enabled/the video is part of a played playlist.
if (playbackState == Player.STATE_ENDED) { if (playbackState == Player.STATE_ENDED) {
binding.sbSkipBtn.isGone = true
if (PlayerHelper.isAutoPlayEnabled(playlistId != null) && autoPlayCountdownEnabled) { if (PlayerHelper.isAutoPlayEnabled(playlistId != null) && autoPlayCountdownEnabled) {
showAutoPlayCountdown() showAutoPlayCountdown()
} else { } else {