Skip to content

Commit

Permalink
fix: click on video playlist won't load if autoplay is off on backgro…
Browse files Browse the repository at this point in the history
…und mode (#6589)

* fix: click on video playlist won't load if autoplay is off on background mode

* refactor: click on video playlist won't load if autoplay is off on background mode
  • Loading branch information
Relwi authored Oct 5, 2024
1 parent 83efcae commit 1ab57cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class OnlinePlayerService : LifecycleService() {

saveWatchPosition()

if (!PlayerHelper.isAutoPlayEnabled(playlistId != null)) return
if (!PlayerHelper.isAutoPlayEnabled(playlistId != null) && nextId == null) return

val nextVideo = nextId ?: PlayingQueue.getNext() ?: return

Expand Down

0 comments on commit 1ab57cb

Please sign in to comment.