fix playlists crash

This commit is contained in:
Bnyro 2022-11-19 11:01:51 +01:00
parent 48564ed3c6
commit 0583f005e8

View File

@ -123,9 +123,10 @@ class PlaylistFragment : BaseFragment() {
}
binding.playAll.setOnClickListener {
if (response.relatedStreams.orEmpty().isEmpty()) return@setOnClickListener
NavigationHelper.navigateVideo(
requireContext(),
response.relatedStreams?.first()?.url?.toID(),
response.relatedStreams!!.first().url?.toID(),
playlistId
)
}