fix: click on video playlist won't load if autoplay is off on background 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
This commit is contained in:
Relwi 2024-10-05 13:44:52 +02:00 committed by GitHub
parent 83efcaef5c
commit 1ab57cb744
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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