fix(Player): hide sponsorblock skip button on video end

Fixes an issue, where the sponsorblock skip button would remain visible
after the video ended.
This commit is contained in:
FineFindus 2025-03-10 14:46:49 +01:00
parent ccc69dca2c
commit a5c7d5320e
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B

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 {