Skip to content

Commit a5c7d53

Browse files
committed
fix(Player): hide sponsorblock skip button on video end
Fixes an issue, where the sponsorblock skip button would remain visible after the video ended.
1 parent ccc69dc commit a5c7d53

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
273273

274274
// check if video has ended, next video is available and autoplay is enabled/the video is part of a played playlist.
275275
if (playbackState == Player.STATE_ENDED) {
276+
binding.sbSkipBtn.isGone = true
276277
if (PlayerHelper.isAutoPlayEnabled(playlistId != null) && autoPlayCountdownEnabled) {
277278
showAutoPlayCountdown()
278279
} else {

0 commit comments

Comments
 (0)