Merge pull request #6561 from Relwi/master

fix: shuffle button crash when playlist is empty
This commit is contained in:
Bnyro 2024-09-30 10:55:05 +02:00 committed by GitHub
commit 7d9782ec91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,7 +253,7 @@ class PlaylistFragment : DynamicLayoutManagerFragment() {
PlayingQueue.add(*queue.toTypedArray())
NavigationHelper.navigateVideo(
requireContext(),
queue.first().url,
queue.firstOrNull()?.url,
playlistId = playlistId,
keepQueue = true
)