Skip to content

Commit

Permalink
Merge pull request #6481 from Bnyro/master
Browse files Browse the repository at this point in the history
fix: autoplay countdown showing even if autoplay disabled
  • Loading branch information
Bnyro authored Sep 10, 2024
2 parents 37f8bb2 + 0071771 commit 6da01e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import com.github.libretube.helpers.IntentHelper
import com.github.libretube.helpers.NavBarHelper
import com.github.libretube.helpers.NavigationHelper
import com.github.libretube.helpers.PlayerHelper
import com.github.libretube.helpers.PlayerHelper.autoPlayEnabled
import com.github.libretube.helpers.PlayerHelper.checkForSegments
import com.github.libretube.helpers.PlayerHelper.getVideoStats
import com.github.libretube.helpers.PlayerHelper.isInSegment
Expand Down Expand Up @@ -302,7 +303,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {

// 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 (!isPlayerTransitioning) {
if (!isPlayerTransitioning && PlayerHelper.isAutoPlayEnabled(playlistId != null)) {
isPlayerTransitioning = true
if (PlayerHelper.autoPlayCountdown) {
showAutoPlayCountdown()
Expand Down

0 comments on commit 6da01e9

Please sign in to comment.