fix: shuffle button crash when playlist is empty

This commit is contained in:
Relwi 2024-09-29 22:38:10 +02:00
parent 5b00c468b7
commit 11d8730fab
No known key found for this signature in database
GPG Key ID: 27181637D525B6B8

View File

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